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-embed.php

    r32544 r32545  
    110110     */
    111111    public function unregister_handler( $id, $priority = 10 ) {
    112         if ( isset($this->handlers[$priority][$id]) )
    113             unset($this->handlers[$priority][$id]);
     112        unset( $this->handlers[ $priority ][ $id ] );
    114113    }
    115114
Note: See TracChangeset for help on using the changeset viewer.