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
This commit is contained in:
Drew Jaynes 2016-02-25 05:11:26 +00:00
parent f5ea3e5dac
commit 8cd541daed
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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.