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:
Ella Iseulde Van Dorpe 2019-09-23 18:09:58 +00:00
parent 0d75495612
commit fbcc75a5d6
2 changed files with 4 additions and 4 deletions

View File

@ -651,7 +651,8 @@ function wp_default_packages_inline_scripts( &$scripts ) {
}
$scripts->add_inline_script(
'wp-api-fetch',
join(
implode(
"\n",
array(
sprintf(
'wp.apiFetch.nonceMiddleware = wp.apiFetch.createNonceMiddleware( "%s" );',
@ -662,8 +663,7 @@ function wp_default_packages_inline_scripts( &$scripts ) {
'wp.apiFetch.nonceEndpoint = "%s";',
admin_url( 'admin-ajax.php?action=rest-nonce' )
),
),
"\n"
)
),
'after'
);

View File

@ -13,7 +13,7 @@
*
* @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.