Changeset 12941 for trunk/wp-admin/edit-tags.php
- Timestamp:
- 02/04/2010 10:51:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r12835 r12941 290 290 291 291 <?php if ( current_user_can($tax->edit_cap) ) { 292 do_action('add_tag_form_pre', $taxonomy); ?> 292 if ( 'category' == $taxonomy ) 293 do_action('add_category_form_pre', (object)array('parent' => 0) ); 294 else 295 do_action('add_tag_form_pre', $taxonomy); 296 do_action('add_' . $taxonomy . '_form_pre', $taxonomy); 297 ?> 293 298 294 299 <div class="form-wrap"> … … 324 329 </div> 325 330 331 <?php 332 if ( 'category' == $taxonomy ) 333 do_action('add_category_form_fields'); 334 else 335 do_action('add_tag_form_fields', $taxonomy); 336 do_action('add_' . $taxonomy . '_form_fields', $taxonomy); 337 ?> 338 326 339 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php esc_attr_e('Add Tag'); ?>" /></p> 327 <?php do_action('add_tag_form', $taxonomy); ?> 340 <?php 341 if ( 'category' == $taxonomy ) 342 do_action('edit_category_form', (object)array('parent' => 0) ); 343 else 344 do_action('add_tag_form', $taxonomy); 345 do_action('add_' . $taxonomy . '_form', $taxonomy); 346 ?> 328 347 </form></div> 329 348 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.