From 79a907edf3502f94c32e2acb85d6fb73ee86e2c4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 Oct 2015 13:53:19 +0000 Subject: [PATCH] Scripts: in `WP_Scripts::set_group()`, the `args` prop of the `_WP_Dependency` instance defaults to `null` - check that it is set before comparing. Props tivnet, chriscct7. Fixes #25462. git-svn-id: https://develop.svn.wordpress.org/trunk@34862 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class.wp-scripts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php index 2cca26c691..52c6824b5a 100644 --- a/src/wp-includes/class.wp-scripts.php +++ b/src/wp-includes/class.wp-scripts.php @@ -247,7 +247,7 @@ class WP_Scripts extends WP_Dependencies { * @return bool Not already in the group or a lower group */ public function set_group( $handle, $recursion, $group = false ) { - if ( $this->registered[$handle]->args === 1 ) + if ( isset( $this->registered[$handle]->args ) && $this->registered[$handle]->args === 1 ) $grp = 1; else $grp = (int) $this->get_data( $handle, 'group' );