Make WordPress Core

Changeset 52127


Ignore:
Timestamp:
11/10/2021 06:39:40 PM (23 months ago)
Author:
johnbillion
Message:

Docs: Add missing documentation for the $javascript parameter of the wp_inline_script_attributes filter.

See #53399

File:
1 edited

Legend:

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

    r52069 r52127  
    26252625 *
    26262626 * @param string $javascript Inline JavaScript code.
    2627  * @param array  $attributes  Optional. Key-value pairs representing `<script>` tag attributes.
     2627 * @param array  $attributes Optional. Key-value pairs representing `<script>` tag attributes.
    26282628 * @return string String containing inline JavaScript code wrapped around `<script>` tag.
    26292629 */
     
    26372637     * @since 5.7.0
    26382638     *
    2639      * @param array $attributes Key-value pairs representing `<script>` tag attributes.
    2640      *                          Only the attribute name is added to the `<script>` tag for
    2641      *                          entries with a boolean value, and that are true.
     2639     * @param array  $attributes Key-value pairs representing `<script>` tag attributes.
     2640     *                           Only the attribute name is added to the `<script>` tag for
     2641     *                           entries with a boolean value, and that are true.
     2642     * @param string $javascript Inline JavaScript code.
    26422643     */
    26432644    $attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $javascript );
Note: See TracChangeset for help on using the changeset viewer.