Ticket #49239: edit-tag-form.php.2.patch
| File edit-tag-form.php.2.patch, 2.4 KB (added by , 6 years ago) |
|---|
-
edit-tag-form.php
12 12 } 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. 18 18 * … … 22 22 * @param WP_Term $tag Current category term object. 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. 28 28 * … … 177 177 $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); 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 : ?> 183 183 <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> … … 192 192 </tr> 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. 198 198 * … … 202 202 * @param WP_Term $tag Current category term object. 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. 208 208 * … … 239 239 </table> 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' ); 248 248 } else {