Changeset 47785 for trunk/src/wp-admin/edit-tag-form.php
- Timestamp:
- 05/12/2020 06:30:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tag-form.php
r47198 r47785 13 13 14 14 // Back compat hooks. 15 if ( 'category' == $taxonomy ) {15 if ( 'category' === $taxonomy ) { 16 16 /** 17 17 * Fires before the Edit Category form. … … 23 23 */ 24 24 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 ) { 26 26 /** 27 27 * Fires before the Edit Link Category form. … … 178 178 wp_dropdown_categories( $dropdown_args ); 179 179 ?> 180 <?php if ( 'category' == $taxonomy ) : ?>180 <?php if ( 'category' === $taxonomy ) : ?> 181 181 <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> 182 182 <?php else : ?> … … 193 193 <?php 194 194 // Back compat hooks. 195 if ( 'category' == $taxonomy ) {195 if ( 'category' === $taxonomy ) { 196 196 /** 197 197 * Fires after the Edit Category form fields are displayed. … … 203 203 */ 204 204 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 ) { 206 206 /** 207 207 * Fires after the Edit Link Category form fields are displayed. … … 240 240 <?php 241 241 // Back compat hooks. 242 if ( 'category' == $taxonomy ) {242 if ( 'category' === $taxonomy ) { 243 243 /** This action is documented in wp-admin/edit-tags.php */ 244 244 do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' ); 245 } elseif ( 'link_category' == $taxonomy ) {245 } elseif ( 'link_category' === $taxonomy ) { 246 246 /** This action is documented in wp-admin/edit-tags.php */ 247 247 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.