Changeset 13035
- Timestamp:
- 02/09/2010 10:56:39 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tag-form.php
r13025 r13035 24 24 else 25 25 do_action('edit_tag_form_pre', $tag); 26 do_action( 'edit_' . $taxonomy . '_form_pre', $tag, $taxonomy); ?>26 do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?> 27 27 28 28 <div class="wrap"> … … 66 66 else 67 67 do_action('edit_tag_form_fields', $tag); 68 do_action( 'edit_' . $taxonomy . '_form_fields', $tag, $taxonomy);68 do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy); 69 69 ?> 70 70 </table> … … 72 72 <?php 73 73 if ( 'category' == $taxonomy ) 74 do_action('edit_category_form _', $tag);74 do_action('edit_category_form', $tag); 75 75 else 76 do_action('edit_tag_form _', $tag);77 do_action( 'edit_' . $taxonomy . '_form', $tag, $taxonomy);76 do_action('edit_tag_form', $tag); 77 do_action($taxonomy . '_edit_form', $tag, $taxonomy); 78 78 ?> 79 79 </form> -
trunk/wp-admin/edit-tags.php
r13025 r13035 291 291 <?php if ( current_user_can($tax->edit_cap) ) { 292 292 if ( 'category' == $taxonomy ) 293 do_action('add_category_form_pre', (object)array('parent' => 0) ); 293 do_action('add_category_form_pre', (object)array('parent' => 0) ); // Back compat hook. Deprecated in preference to $taxonomy_pre_add_form 294 294 else 295 do_action('add_tag_form_pre', $taxonomy); 296 do_action( 'add_' . $taxonomy . '_form_pre', $taxonomy);295 do_action('add_tag_form_pre', $taxonomy); // Back compat hook. Applies to all Taxonomies -not- categories 296 do_action($taxonomy . '_pre_add_form', $taxonomy); 297 297 ?> 298 298 … … 329 329 </div> 330 330 331 <?php 332 if ( ! is_taxonomy_hierarchical($taxonomy) ) 333 do_action('add_tag_form_fields', $taxonomy); 334 do_action($taxonomy . '_add_form_fields', $taxonomy); 335 ?> 336 337 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php esc_attr_e('Add Tag'); ?>" /></p> 331 338 <?php 332 339 if ( 'category' == $taxonomy ) 333 do_action(' add_category_form_fields');340 do_action('edit_category_form', (object)array('parent' => 0) ); // Back compat hook. Deprecated in preference to $taxonomy_add_form 334 341 else 335 do_action('add_tag_form_fields', $taxonomy); 336 do_action('add_' . $taxonomy . '_form_fields', $taxonomy); 337 ?> 338 339 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php esc_attr_e('Add Tag'); ?>" /></p> 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); 342 do_action('add_tag_form', $taxonomy); // Back compat hook. Applies to all Taxonomies -not- categories 343 do_action($taxonomy . '_add_form', $taxonomy); 346 344 ?> 347 345 </form></div>
Note: See TracChangeset
for help on using the changeset viewer.