WordPress.org

Make WordPress Core

Ticket #20576: wp-scripts-notice-fix.diff

File wp-scripts-notice-fix.diff, 513 bytes (added by bigdawggi, 3 years ago)
  • wp-includes/class.wp-scripts.php

     
    162162 
    163163        function set_group( $handle, $recursion, $group = false ) { 
    164164 
    165                 if ( $this->registered[$handle]->args === 1 ) 
     165                if ( isset( $this->registered[$handle] ) && $this->registered[$handle]->args === 1 ) 
    166166                        $grp = 1; 
    167167                else 
    168168                        $grp = (int) $this->get_data( $handle, 'group' );