Make WordPress Core

Changeset 46257


Ignore:
Timestamp:
09/23/2019 06:08:41 PM (5 years ago)
Author:
iseulde
Message:

r46253: Use implode instead of join, see #47746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r46253 r46257  
    652652    $scripts->add_inline_script(
    653653        'wp-api-fetch',
    654         join(
     654        implode(
     655            "\n",
    655656            array(
    656657                sprintf(
     
    663664                    admin_url( 'admin-ajax.php?action=rest-nonce' )
    664665                ),
    665             ),
    666             "\n"
     666            )
    667667        ),
    668668        'after'
Note: See TracChangeset for help on using the changeset viewer.