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' );