Changeset 12941
- Timestamp:
- 02/04/2010 10:51:58 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tag-form.php
r12818 r12941 20 20 } 21 21 22 do_action('edit_tag_form_pre', $tag); ?> 22 if ( 'category' == $taxonomy ) 23 do_action('edit_category_form_pre', $tag ); 24 else 25 do_action('edit_tag_form_pre', $tag); 26 do_action('edit_' . $taxonomy . '_form_pre', $tag, $taxonomy); ?> 23 27 24 28 <div class="wrap"> … … 57 61 <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td> 58 62 </tr> 59 <?php do_action('edit_tag_form_fields', $tag); ?> 63 <?php 64 if ( 'category' == $taxonomy ) 65 do_action('edit_category_form_fields', $tag); 66 else 67 do_action('edit_tag_form_fields', $tag); 68 do_action('edit_' . $taxonomy . '_form_fields', $tag, $taxonomy); 69 ?> 60 70 </table> 61 71 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p> 62 <?php do_action('edit_tag_form', $tag); ?> 72 <?php 73 if ( 'category' == $taxonomy ) 74 do_action('edit_category_form_', $tag); 75 else 76 do_action('edit_tag_form_', $tag); 77 do_action('edit_' . $taxonomy . '_form', $tag, $taxonomy); 78 ?> 63 79 </form> 64 80 </div> -
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.