WordPress.org

Make WordPress Core

Ticket #42505: 42505.2.diff

File 42505.2.diff, 1.8 KB (added by birgire, 3 years ago)
  • src/wp-includes/functions.wp-scripts.php

    diff --git src/wp-includes/functions.wp-scripts.php src/wp-includes/functions.wp-scripts.php
    index 765fe92..e88a622 100644
    function wp_print_scripts( $handles = false ) { 
    9191/**
    9292 * Adds extra code to a registered script.
    9393 *
    94  * Code will only be added if the script in already in the queue.
    95  * Accepts a string $data containing the Code. If two or more code blocks
    96  * are added to the same script $handle, they will be printed in the order
     94 * Code will only be added if the script is already in the queue.
     95 * Accepts a string `$data` containing the Code. If two or more code blocks
     96 * are added to the same script `$handle`, they will be printed in the order
    9797 * they were added, i.e. the latter added code can redeclare the previous.
    9898 *
    9999 * @since 4.5.0
  • src/wp-includes/functions.wp-styles.php

    diff --git src/wp-includes/functions.wp-styles.php src/wp-includes/functions.wp-styles.php
    index 3b7f20b..51a9049 100644
    function wp_print_styles( $handles = false ) { 
    6767/**
    6868 * Add extra CSS styles to a registered stylesheet.
    6969 *
    70  * Styles will only be added if the stylesheet in already in the queue.
    71  * Accepts a string $data containing the CSS. If two or more CSS code blocks
    72  * are added to the same stylesheet $handle, they will be printed in the order
     70 * Styles will only be added if the stylesheet is already in the queue.
     71 * Accepts a string `$data` containing the CSS. If two or more CSS code blocks
     72 * are added to the same stylesheet `$handle`, they will be printed in the order
    7373 * they were added, i.e. the latter added styles can redeclare the previous.
    7474 *
    7575 * @see WP_Styles::add_inline_style()