Make WordPress Core


Ignore:
Timestamp:
05/22/2015 05:46:47 AM (9 years ago)
Author:
wonderboymusic
Message:

When calling unset(), it is unnecessary to immediately precede it with a call to isset().

See #32444.

File:
1 edited

Legend:

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

    r31141 r32545  
    409409                $this->unset_children( $child, $children_elements );
    410410
    411         if ( isset($children_elements[$id]) )
    412             unset( $children_elements[$id] );
    413 
     411        unset( $children_elements[ $id ] );
    414412    }
    415413
Note: See TracChangeset for help on using the changeset viewer.