Make WordPress Core

Ticket #45705: #45705.patch

File #45705.patch, 627 bytes (added by jankimoradiya, 6 years ago)

Updated "Code will only be added if the script in already in the queue." To "Code will only be added if the script is already in the queue." for wp_add_inline_script() function documentation.

  • functions.wp-scripts.php

     
    9393/**
    9494 * Adds extra code to a registered script.
    9595 *
    96  * Code will only be added if the script in already in the queue.
     96 * Code will only be added if the script is already in the queue.
    9797 * Accepts a string $data containing the Code. If two or more code blocks
    9898 * are added to the same script $handle, they will be printed in the order
    9999 * they were added, i.e. the latter added code can redeclare the previous.