Skip to content
Permalink
Browse files

r46253: Use implode instead of join, see #47746

git-svn-id: https://develop.svn.wordpress.org/trunk@46257 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
ellatrix committed Sep 23, 2019
1 parent 0ff03b3 commit c1d89f782a1ce57674df1bc4110cdbaa47094d13
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/wp-includes/script-loader.php
@@ -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'
);

0 comments on commit c1d89f7

Please sign in to comment.
You can’t perform that action at this time.