mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Docs: Further improve documentation of known return types, plus other docs fixes.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46661 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -175,11 +175,11 @@ class WP_Scripts extends WP_Dependencies {
|
||||
* @since 2.1.0
|
||||
* @since 2.8.0 Added the `$group` parameter.
|
||||
*
|
||||
* @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints
|
||||
* that script, (array of strings) prints those scripts. Default false.
|
||||
* @param int $group Optional. If scripts were queued in groups prints this group number.
|
||||
* Default false.
|
||||
* @return array Scripts that have been printed.
|
||||
* @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints
|
||||
* that script, (array of strings) prints those scripts. Default false.
|
||||
* @param int|false $group Optional. If scripts were queued in groups prints this group number.
|
||||
* Default false.
|
||||
* @return string[] Handles of scripts that have been printed.
|
||||
*/
|
||||
public function print_scripts( $handles = false, $group = false ) {
|
||||
return $this->do_items( $handles, $group );
|
||||
@@ -627,7 +627,7 @@ JS;
|
||||
*
|
||||
* @see WP_Dependencies::do_items()
|
||||
*
|
||||
* @return array Handles of items that have been processed.
|
||||
* @return string[] Handles of items that have been processed.
|
||||
*/
|
||||
public function do_head_items() {
|
||||
$this->do_items( false, 0 );
|
||||
@@ -641,7 +641,7 @@ JS;
|
||||
*
|
||||
* @see WP_Dependencies::do_items()
|
||||
*
|
||||
* @return array Handles of items that have been processed.
|
||||
* @return string[] Handles of items that have been processed.
|
||||
*/
|
||||
public function do_footer_items() {
|
||||
$this->do_items( false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user