WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/15/2019 09:43:08 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/term.php.

Props vinita29.
Fixes #48983.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/term.php

    r46263 r46961  
    5353}
    5454
    55 if ( 'post' != $post_type ) {
    56     $parent_file  = ( 'attachment' == $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
     55if ( 'post' !== $post_type ) {
     56    $parent_file  = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type";
    5757    $submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type";
    58 } elseif ( 'link_category' == $taxonomy ) {
     58} elseif ( 'link_category' === $taxonomy ) {
    5959    $parent_file  = 'link-manager.php';
    6060    $submenu_file = 'edit-tags.php?taxonomy=link_category';
Note: See TracChangeset for help on using the changeset viewer.