Ticket #39047: 39047.2.diff
File 39047.2.diff, 658 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/script-loader.php
507 507 $scripts->add( 'wp-api', "/wp-includes/js/wp-api$suffix.js", array( 'jquery', 'backbone', 'underscore' ), false, 1 ); 508 508 did_action( 'init' ) && $scripts->localize( 'wp-api', 'wpApiSettings', array( 509 509 'root' => esc_url_raw( get_rest_url() ), 510 'nonce' => wp_ create_nonce( 'wp_rest' ),510 'nonce' => wp_installing() ? '' : wp_create_nonce( 'wp_rest' ), 511 511 'versionString' => 'wp/v2/', 512 512 ) ); 513 513