From 816a3e058c2b4c14b6c04f02e1864d59322c64b4 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 25 Feb 2016 05:10:46 +0000 Subject: [PATCH] Docs: Standardize DocBlocks for two new `WP_Scripts` methods, `add_inline_script()` and `print_inline_script()`, introduced in [36633]. See #14853. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@36706 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class.wp-scripts.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php index d63c6bd973..34f10165d4 100644 --- a/src/wp-includes/class.wp-scripts.php +++ b/src/wp-includes/class.wp-scripts.php @@ -239,15 +239,15 @@ class WP_Scripts extends WP_Dependencies { } /** - * Add extra code to a registered script. + * Adds extra code to a registered script. * * @since 4.5.0 + * @access public * * @param string $handle Name of the script to add the inline script to. Must be lowercase. * @param string $data String containing the javascript to be added. * @param string $position Optional. Whether to add the inline script before the handle * or after. Default 'after'. - * * @return bool True on success, false on failure. */ public function add_inline_script( $handle, $data, $position = 'after' ) { @@ -266,9 +266,10 @@ class WP_Scripts extends WP_Dependencies { } /** - * Print inline scripts registered for a specific handle. + * Prints inline scripts registered for a specific handle. * * @since 4.5.0 + * @access public * * @param string $handle Name of the script to add the inline script to. Must be lowercase. * @param string $position Optional. Whether to add the inline script before the handle