r46253: Use implode instead of join, see #47746
Built from https://develop.svn.wordpress.org/trunk@46257 git-svn-id: http://core.svn.wordpress.org/trunk@46069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d75495612
commit
fbcc75a5d6
|
@ -651,7 +651,8 @@ function wp_default_packages_inline_scripts( &$scripts ) {
|
||||||
}
|
}
|
||||||
$scripts->add_inline_script(
|
$scripts->add_inline_script(
|
||||||
'wp-api-fetch',
|
'wp-api-fetch',
|
||||||
join(
|
implode(
|
||||||
|
"\n",
|
||||||
array(
|
array(
|
||||||
sprintf(
|
sprintf(
|
||||||
'wp.apiFetch.nonceMiddleware = wp.apiFetch.createNonceMiddleware( "%s" );',
|
'wp.apiFetch.nonceMiddleware = wp.apiFetch.createNonceMiddleware( "%s" );',
|
||||||
|
@ -662,8 +663,7 @@ function wp_default_packages_inline_scripts( &$scripts ) {
|
||||||
'wp.apiFetch.nonceEndpoint = "%s";',
|
'wp.apiFetch.nonceEndpoint = "%s";',
|
||||||
admin_url( 'admin-ajax.php?action=rest-nonce' )
|
admin_url( 'admin-ajax.php?action=rest-nonce' )
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
"\n"
|
|
||||||
),
|
),
|
||||||
'after'
|
'after'
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46256';
|
$wp_version = '5.3-alpha-46257';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue