WordPress.org

Make WordPress Core

Ticket #20912: 20912.patch

File 20912.patch, 518 bytes (added by SergeyBiryukov, 22 months 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' );