Changeset 15820
- Timestamp:
- 10/16/2010 01:26:54 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tag-form.php
r15798 r15820 17 17 } 18 18 19 // Back compat hooks 19 20 if ( 'category' == $taxonomy ) 20 21 do_action('edit_category_form_pre', $tag ); 22 elseif ( 'link_category' == $taxonomy ) 23 do_action('edit_link_category_form_pre', $tag ); 21 24 else 22 25 do_action('edit_tag_form_pre', $tag); 26 23 27 do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> 24 28 … … 62 66 </tr> 63 67 <?php 68 // Back compat hooks 64 69 if ( 'category' == $taxonomy ) 65 70 do_action('edit_category_form_fields', $tag); 71 if ( 'link_category' == $taxonomy ) 72 do_action('edit_link_category_form_fields', $tag); 66 73 else 67 74 do_action('edit_tag_form_fields', $tag); 75 68 76 do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy); 69 77 ?> 70 78 </table> 71 79 <?php 80 // Back compat hooks 72 81 if ( 'category' == $taxonomy ) 73 82 do_action('edit_category_form', $tag); 83 if ( 'link_category' == $taxonomy ) 84 do_action('edit_link_category_form', $tag); 74 85 else 75 86 do_action('edit_tag_form', $tag); 87 76 88 do_action($taxonomy . '_edit_form', $tag, $taxonomy); 77 89 ?> -
trunk/wp-admin/edit-tags.php
r15746 r15820 284 284 285 285 if ( current_user_can($tax->cap->edit_terms) ) { 286 if ( 'category' == $taxonomy ) 287 do_action('add_category_form_pre', (object)array('parent' => 0) ); // Back compat hook. Deprecated in preference to $taxonomy_pre_add_form 288 else 289 do_action('add_tag_form_pre', $taxonomy); // Back compat hook. Applies to all Taxonomies -not- categories 286 // Back compat hooks. Deprecated in preference to {$taxonomy}_pre_add_form 287 if ( 'category' == $taxonomy ) 288 do_action('add_category_form_pre', (object)array('parent' => 0) ); 289 elseif ( 'link_category' == $taxonomy ) 290 do_action('add_link_category_form_pre', (object)array('parent' => 0) ); 291 else 292 do_action('add_tag_form_pre', $taxonomy); 293 290 294 do_action($taxonomy . '_pre_add_form', $taxonomy); 291 295 ?> … … 334 338 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" /></p> 335 339 <?php 340 // Back compat hooks. Deprecated in preference to {$taxonomy}_add_form 336 341 if ( 'category' == $taxonomy ) 337 do_action('edit_category_form', (object)array('parent' => 0) ); // Back compat hook. Deprecated in preference to $taxonomy_add_form 342 do_action('add_category_form', (object)array('parent' => 0) ); 343 elseif ( 'link_category' == $taxonomy ) 344 do_action('add_link_category_form', (object)array('parent' => 0) ); 338 345 else 339 do_action('add_tag_form', $taxonomy); // Back compat hook. Applies to all Taxonomies -not- categories 346 do_action('add_tag_form', $taxonomy); 347 340 348 do_action($taxonomy . '_add_form', $taxonomy); 341 349 ?>
Note: See TracChangeset
for help on using the changeset viewer.