Make WordPress Core

Ticket #49239: edit-tag-form.php.2.patch

File edit-tag-form.php.2.patch, 2.4 KB (added by pikamander2, 6 years ago)
  • edit-tag-form.php

     
    1212}
    1313
    1414// Back compat hooks
    15 if ( 'category' == $taxonomy ) {
     15if ( 'category' === $taxonomy ) {
    1616        /**
    1717         * Fires before the Edit Category form.
    1818         *
     
    2222         * @param WP_Term $tag Current category term object.
    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.
    2828         *
     
    177177                                $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
    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 : ?>
    183183                                        <p class="description"><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p>
     
    192192                </tr>
    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.
    198198                         *
     
    202202                         * @param WP_Term $tag Current category term object.
    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.
    208208                         *
     
    239239        </table>
    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' );
    248248} else {