WordPress.org

Make WordPress Core

Ticket #51063: 51063.patch

File 51063.patch, 1.9 KB (added by Laxman Prajapati, 13 months ago)

Created patch.

  • src/wp-includes/class.wp-scripts.php

    diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php
    index f63517f7e1..a6b53bc692 100644
    a b class WP_Scripts extends WP_Dependencies { 
    413413         *
    414414         * @since 4.5.0
    415415         *
    416          * @param string $handle   Name of the script to add the inline script to.
    417          *                         Must be lowercase.
     416         * @param string $handle   Name of the script to add the inline script must be lowercase.
    418417         * @param string $data     String containing the javascript to be added.
    419          * @param string $position Optional. Whether to add the inline script
    420          *                         before the handle or after. Default 'after'.
     418         * @param string $position Optional. Whether to add the inline script before the handle or after. Default 'after'.
    421419         * @return bool True on success, false on failure.
    422420         */
    423421        public function add_inline_script( $handle, $data, $position = 'after' ) {
    class WP_Scripts extends WP_Dependencies { 
    440438         *
    441439         * @since 4.5.0
    442440         *
    443          * @param string $handle   Name of the script to add the inline script to.
    444          *                         Must be lowercase.
    445          * @param string $position Optional. Whether to add the inline script
    446          *                         before the handle or after. Default 'after'.
    447          * @param bool   $echo     Optional. Whether to echo the script
    448          *                         instead of just returning it. Default true.
     441         * @param string $handle   Name of the script to add the inline script must be lowercase.
     442         * @param string $position Optional. Whether to add the inline script before the handle or after. Default 'after'.
     443         * @param bool   $echo     Optional. Whether to echo the script instead of just returning it. Default true.
    449444         * @return string|false Script on success, false otherwise.
    450445         */
    451446        public function print_inline_script( $handle, $position = 'after', $echo = true ) {