WordPress.org

Make WordPress Core

Changeset 34862


Ignore:
Timestamp:
10/06/2015 01:53:19 PM (5 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-scripts.php

    r32657 r34862  
    248248     */
    249249    public function set_group( $handle, $recursion, $group = false ) {
    250         if ( $this->registered[$handle]->args === 1 )
     250        if ( isset( $this->registered[$handle]->args ) && $this->registered[$handle]->args === 1 )
    251251            $grp = 1;
    252252        else
Note: See TracChangeset for help on using the changeset viewer.