Coding Standards: Use strict comparison in wp-admin/term.php
.
Props vinita29. Fixes #48983. git-svn-id: https://develop.svn.wordpress.org/trunk@46961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
49c6bc2a69
commit
ee4f57d509
@ -52,10 +52,10 @@ if ( empty( $post_type ) ) {
|
||||
$post_type = reset( $tax->object_type );
|
||||
}
|
||||
|
||||
if ( 'post' != $post_type ) {
|
||||
$parent_file = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
|
||||
if ( 'post' !== $post_type ) {
|
||||
$parent_file = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
|
||||
$submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type";
|
||||
} elseif ( 'link_category' == $taxonomy ) {
|
||||
} elseif ( 'link_category' === $taxonomy ) {
|
||||
$parent_file = 'link-manager.php';
|
||||
$submenu_file = 'edit-tags.php?taxonomy=link_category';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user