Make WordPress Core


Ignore:
Timestamp:
11/19/2013 11:15:07 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/edit-tags.php.

Props pauldewouters for the initial patch.
Fixes #25532.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r25034 r26274  
    1818
    1919// Back compat hooks
    20 if ( 'category' == $taxonomy )
    21     do_action('edit_category_form_pre', $tag );
    22 elseif ( 'link_category' == $taxonomy )
    23     do_action('edit_link_category_form_pre', $tag );
    24 else
    25     do_action('edit_tag_form_pre', $tag);
    26 
    27 do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?>
     20if ( 'category' == $taxonomy ) {
     21    /** This action is documented in wp-admin/edit-tags.php */
     22    do_action( 'edit_category_form_pre', $tag );
     23} elseif ( 'link_category' == $taxonomy ) {
     24    /** This action is documented in wp-admin/edit-tags.php */
     25    do_action( 'edit_link_category_form_pre', $tag );
     26} else {
     27    /** This action is documented in wp-admin/edit-tags.php */
     28    do_action( 'edit_tag_form_pre', $tag );
     29}
     30/** This action is documented in wp-admin/edit-tags.php */
     31do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
    2832
    2933<div class="wrap">
Note: See TracChangeset for help on using the changeset viewer.