WordPress.org

Make WordPress Core

Ticket #39047: 39047-2.patch

File 39047-2.patch, 1.3 KB (added by nullvariable, 3 years ago)

updated patch to remove extra parentheses

  • src/wp-includes/script-loader.php

     
    507507        $scripts->add( 'wp-api', "/wp-includes/js/wp-api$suffix.js", array( 'jquery', 'backbone', 'underscore' ), false, 1 );
    508508        did_action( 'init' ) && $scripts->localize( 'wp-api', 'wpApiSettings', array(
    509509                'root'          => esc_url_raw( get_rest_url() ),
    510                 'nonce'         => wp_create_nonce( 'wp_rest' ),
     510                'nonce'         => WP_INSTALLING ? '' : wp_create_nonce( 'wp_rest' ),
    511511                'versionString' => 'wp/v2/',
    512512        ) );
    513513