mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
When calling unset(), it is unnecessary to immediately precede it with a call to isset().
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -109,8 +109,7 @@ class WP_Embed {
|
||||
* @param int $priority Optional. The priority of the handler to be removed (default: 10).
|
||||
*/
|
||||
public function unregister_handler( $id, $priority = 10 ) {
|
||||
if ( isset($this->handlers[$priority][$id]) )
|
||||
unset($this->handlers[$priority][$id]);
|
||||
unset( $this->handlers[ $priority ][ $id ] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user