Changeset 34279 for branches/4.3
- Timestamp:
- 09/18/2015 05:49:20 AM (9 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
-
branches/4.3/src/wp-includes/class-wp-customize-nav-menus.php
r33602 r34279 931 931 'renderNonceValue' => wp_create_nonce( self::RENDER_AJAX_ACTION ), 932 932 'renderNoncePostKey' => self::RENDER_NONCE_POST_KEY, 933 'requestUri' => '/',933 'requestUri' => empty( $_SERVER['REQUEST_URI'] ) ? home_url( '/' ) : esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 934 934 'theme' => array( 935 935 'stylesheet' => $this->manager->get_stylesheet(), … … 940 940 ); 941 941 942 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) {943 $exports['requestUri'] = esc_url_raw( home_url( wp_unslash( $_SERVER['REQUEST_URI'] ) ) );944 }945 946 942 printf( '<script>var _wpCustomizePreviewNavMenusExports = %s;</script>', wp_json_encode( $exports ) ); 947 943 }
Note: See TracChangeset
for help on using the changeset viewer.