From 8cd541daed78e60889da78053bc4a40520666536 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 25 Feb 2016 05:11:26 +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. Built from https://develop.svn.wordpress.org/trunk@36706 git-svn-id: http://core.svn.wordpress.org/trunk@36673 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class.wp-scripts.php | 7 ++++--- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index d63c6bd973..34f10165d4 100644 --- a/wp-includes/class.wp-scripts.php +++ b/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 diff --git a/wp-includes/version.php b/wp-includes/version.php index 9444eddd3e..a71632ba89 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta1-36705'; +$wp_version = '4.5-beta1-36706'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.