Ticket #12171: 12171.4.diff
File 12171.4.diff, 2.5 KB (added by , 13 years ago) |
---|
-
wp-admin/edit-tag-form.php
19 19 return; 20 20 } 21 21 22 if ( 'category' == $taxonomy ) 23 do_action('edit_category_form_pre', $tag ); 24 else 22 if ( !is_taxonomy_hierarchical($taxonomy) ) 25 23 do_action('edit_tag_form_pre', $tag); 26 do_action( 'edit_' . $taxonomy . '_form_pre', $tag, $taxonomy); ?>24 do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> 27 25 28 26 <div class="wrap"> 29 27 <?php screen_icon(); ?> … … 65 63 do_action('edit_category_form_fields', $tag); 66 64 else 67 65 do_action('edit_tag_form_fields', $tag); 68 do_action( 'edit_' . $taxonomy . '_form_fields', $tag, $taxonomy);66 do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy); 69 67 ?> 70 68 </table> 71 69 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p> 72 70 <?php 73 71 if ( 'category' == $taxonomy ) 74 do_action('edit_category_form _', $tag);72 do_action('edit_category_form', $tag); 75 73 else 76 do_action('edit_tag_form _', $tag);77 do_action( 'edit_' . $taxonomy . '_form', $tag, $taxonomy);74 do_action('edit_tag_form', $tag); 75 do_action($taxonomy . '_edit_form', $tag, $taxonomy); 78 76 ?> 79 77 </form> 80 78 </div> -
wp-admin/edit-tags.php
293 293 do_action('add_category_form_pre', (object)array('parent' => 0) ); 294 294 else 295 295 do_action('add_tag_form_pre', $taxonomy); 296 do_action( 'add_' . $taxonomy . '_form_pre', $taxonomy);296 do_action($taxonomy . '_pre_add_form', $taxonomy); 297 297 ?> 298 298 299 299 <div class="form-wrap"> … … 329 329 </div> 330 330 331 331 <?php 332 if ( 'category' == $taxonomy ) 333 do_action('add_category_form_fields'); 334 else 332 if ( ! is_taxonomy_hierarchical($taxonomy) ) 335 333 do_action('add_tag_form_fields', $taxonomy); 336 do_action( 'add_' . $taxonomy . '_form_fields', $taxonomy);334 do_action($taxonomy . '_add_form_fields', $taxonomy); 337 335 ?> 338 336 339 337 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php esc_attr_e('Add Tag'); ?>" /></p> … … 342 340 do_action('edit_category_form', (object)array('parent' => 0) ); 343 341 else 344 342 do_action('add_tag_form', $taxonomy); 345 do_action( 'add_' . $taxonomy . '_form', $taxonomy);343 do_action($taxonomy . '_add_form', $taxonomy); 346 344 ?> 347 345 </form></div> 348 346 <?php } ?>