Ticket #33916: 33916.diff
File 33916.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/class-wp-customize-nav-menus.php
934 934 'renderQueryVar' => self::RENDER_QUERY_VAR, 935 935 'renderNonceValue' => wp_create_nonce( self::RENDER_AJAX_ACTION ), 936 936 'renderNoncePostKey' => self::RENDER_NONCE_POST_KEY, 937 'requestUri' => '/',937 'requestUri' => home_url(), 938 938 'theme' => array( 939 939 'stylesheet' => $this->manager->get_stylesheet(), 940 940 'active' => $this->manager->is_theme_active(), … … 944 944 ); 945 945 946 946 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 947 $exports['requestUri'] = esc_url_raw( home_url( wp_unslash( $_SERVER['REQUEST_URI'] )) );947 $exports['requestUri'] = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 948 948 } 949 949 950 950 printf( '<script>var _wpCustomizePreviewNavMenusExports = %s;</script>', wp_json_encode( $exports ) );