Make WordPress Core


Ignore:
Timestamp:
05/12/2020 06:30:03 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in some wp-admin files.

Props pikamander2, mukesh27, SergeyBiryukov.
Fixes #49239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r47198 r47785  
    1313
    1414// Back compat hooks.
    15 if ( 'category' == $taxonomy ) {
     15if ( 'category' === $taxonomy ) {
    1616    /**
    1717     * Fires before the Edit Category form.
     
    2323     */
    2424    do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
    25 } elseif ( 'link_category' == $taxonomy ) {
     25} elseif ( 'link_category' === $taxonomy ) {
    2626    /**
    2727     * Fires before the Edit Link Category form.
     
    178178                wp_dropdown_categories( $dropdown_args );
    179179                ?>
    180                 <?php if ( 'category' == $taxonomy ) : ?>
     180                <?php if ( 'category' === $taxonomy ) : ?>
    181181                    <p class="description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
    182182                <?php else : ?>
     
    193193        <?php
    194194        // Back compat hooks.
    195         if ( 'category' == $taxonomy ) {
     195        if ( 'category' === $taxonomy ) {
    196196            /**
    197197             * Fires after the Edit Category form fields are displayed.
     
    203203             */
    204204            do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );
    205         } elseif ( 'link_category' == $taxonomy ) {
     205        } elseif ( 'link_category' === $taxonomy ) {
    206206            /**
    207207             * Fires after the Edit Link Category form fields are displayed.
     
    240240<?php
    241241// Back compat hooks.
    242 if ( 'category' == $taxonomy ) {
     242if ( 'category' === $taxonomy ) {
    243243    /** This action is documented in wp-admin/edit-tags.php */
    244244    do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
    245 } elseif ( 'link_category' == $taxonomy ) {
     245} elseif ( 'link_category' === $taxonomy ) {
    246246    /** This action is documented in wp-admin/edit-tags.php */
    247247    do_action_deprecated( 'edit_link_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' );
Note: See TracChangeset for help on using the changeset viewer.