Changeset 52602
- Timestamp:
- 01/18/2022 11:45:40 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r52547 r52602 310 310 sprintf( 311 311 'wp.apiFetch.nonceMiddleware = wp.apiFetch.createNonceMiddleware( "%s" );', 312 ( wp_installing() && ! is_multisite()) ? '' : wp_create_nonce( 'wp_rest' )312 wp_installing() ? '' : wp_create_nonce( 'wp_rest' ) 313 313 ), 314 314 'wp.apiFetch.use( wp.apiFetch.nonceMiddleware );', … … 712 712 array( 713 713 'root' => esc_url_raw( get_rest_url() ), 714 'nonce' => ( wp_installing() && ! is_multisite()) ? '' : wp_create_nonce( 'wp_rest' ),714 'nonce' => wp_installing() ? '' : wp_create_nonce( 'wp_rest' ), 715 715 'versionString' => 'wp/v2/', 716 716 ) … … 1110 1110 array( 1111 1111 'user_id' => $user_id, 1112 'nonce' => ( wp_installing() && ! is_multisite()) ? '' : wp_create_nonce( 'reset-password-for-' . $user_id ),1112 'nonce' => wp_installing() ? '' : wp_create_nonce( 'reset-password-for-' . $user_id ), 1113 1113 ) 1114 1114 ); … … 1336 1336 '_wpUpdatesSettings', 1337 1337 array( 1338 'ajax_nonce' => wp_ create_nonce( 'updates' ),1338 'ajax_nonce' => wp_installing() ? '' : wp_create_nonce( 'updates' ), 1339 1339 ) 1340 1340 );
Note: See TracChangeset
for help on using the changeset viewer.