diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 32f41e178f..580c70dc7a 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -43,10 +43,10 @@ $pagenum = $wp_list_table->get_pagenum(); $title = $tax->labels->name; -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' == $tax->name ) { +} elseif ( 'link_category' === $tax->name ) { $parent_file = 'link-manager.php'; $submenu_file = 'edit-tags.php?taxonomy=link_category'; } else { @@ -242,21 +242,21 @@ if ( current_user_can( $tax->cap->edit_terms ) ) { wp_enqueue_script( 'inline-edit-tax' ); } -if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy ) { +if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === $taxonomy ) { $help = ''; - if ( 'category' == $taxonomy ) { + if ( 'category' === $taxonomy ) { $help = '
' . sprintf( /* translators: %s: URL to Writing Settings screen. */ __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ), 'options-writing.php' ) . '
'; - } elseif ( 'link_category' == $taxonomy ) { + } elseif ( 'link_category' === $taxonomy ) { $help = '' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '
'; } else { $help = '' . __( 'You can assign keywords to your posts using tags. Unlike categories, tags have no hierarchy, meaning there’s no relationship from one tag to another.' ) . '
'; } - if ( 'link_category' == $taxonomy ) { + if ( 'link_category' === $taxonomy ) { $help .= '' . __( 'You can delete Link Categories in the Bulk Action pull-down, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '
'; } else { $help .= '' . __( 'What’s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '
'; @@ -270,8 +270,8 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t ) ); - if ( 'category' == $taxonomy || 'post_tag' == $taxonomy ) { - if ( 'category' == $taxonomy ) { + if ( 'category' === $taxonomy || 'post_tag' === $taxonomy ) { + if ( 'category' === $taxonomy ) { $help = '' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '
'; } else { $help = '' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '
'; @@ -284,7 +284,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t $help .= '' . __( 'For more information:' ) . '
'; - if ( 'category' == $taxonomy ) { + if ( 'category' === $taxonomy ) { $help .= '' . __( 'Documentation on Categories' ) . '
'; - } elseif ( 'link_category' == $taxonomy ) { + } elseif ( 'link_category' === $taxonomy ) { $help .= '' . __( 'Documentation on Link Categories' ) . '
'; } else { $help .= '' . __( 'Documentation on Tags' ) . '
'; @@ -372,7 +372,7 @@ if ( $can_edit_terms ) {