mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +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:
@@ -1755,8 +1755,7 @@ function add_post_type_support( $post_type, $feature ) {
|
||||
function remove_post_type_support( $post_type, $feature ) {
|
||||
global $_wp_post_type_features;
|
||||
|
||||
if ( isset( $_wp_post_type_features[$post_type][$feature] ) )
|
||||
unset( $_wp_post_type_features[$post_type][$feature] );
|
||||
unset( $_wp_post_type_features[ $post_type ][ $feature ] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user