mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Add a return value to wp_register_script() and wp_register_style() which matches the return value of WP_Dependencies::add().
Props katzwebdesign, pareshradadiya, DrewAPicture. Fixes #31126 git-svn-id: https://develop.svn.wordpress.org/trunk@32483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -213,7 +213,7 @@ class WP_Dependencies {
|
||||
* @param array $deps Optional. An array of item handle strings on which this item depends.
|
||||
* @param string $ver Optional. Version (used for cache busting).
|
||||
* @param mixed $args Optional. Custom property of the item. NOT the class property $args. Examples: $media, $in_footer.
|
||||
* @return bool True on success, false on failure.
|
||||
* @return bool Whether the item has been registered. True on success, false on failure.
|
||||
*/
|
||||
public function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
|
||||
if ( isset($this->registered[$handle]) )
|
||||
|
||||
Reference in New Issue
Block a user