Changeset 34278
- Timestamp:
- 09/18/2015 05:46:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r33859 r34278 935 935 'renderNonceValue' => wp_create_nonce( self::RENDER_AJAX_ACTION ), 936 936 'renderNoncePostKey' => self::RENDER_NONCE_POST_KEY, 937 'requestUri' => '/',937 'requestUri' => empty( $_SERVER['REQUEST_URI'] ) ? home_url( '/' ) : esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 938 938 'theme' => array( 939 939 'stylesheet' => $this->manager->get_stylesheet(), … … 944 944 ); 945 945 946 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) {947 $exports['requestUri'] = esc_url_raw( home_url( wp_unslash( $_SERVER['REQUEST_URI'] ) ) );948 }949 950 946 printf( '<script>var _wpCustomizePreviewNavMenusExports = %s;</script>', wp_json_encode( $exports ) ); 951 947 }
Note: See TracChangeset
for help on using the changeset viewer.