Make WordPress Core


Ignore:
Timestamp:
10/16/2010 01:26:54 PM (15 years ago)
Author:
scribu
Message:

Get rid of old link category management files. Fixes #12285

File:
1 edited

Legend:

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

    r15798 r15820  
    1717}
    1818
     19// Back compat hooks
    1920if ( 'category' == $taxonomy )
    2021    do_action('edit_category_form_pre', $tag );
     22elseif ( 'link_category' == $taxonomy )
     23    do_action('edit_link_category_form_pre', $tag );
    2124else
    2225    do_action('edit_tag_form_pre', $tag);
     26
    2327do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy);  ?>
    2428
     
    6266        </tr>
    6367        <?php
     68        // Back compat hooks
    6469        if ( 'category' == $taxonomy )
    6570            do_action('edit_category_form_fields', $tag);
     71        if ( 'link_category' == $taxonomy )
     72            do_action('edit_link_category_form_fields', $tag);
    6673        else
    6774            do_action('edit_tag_form_fields', $tag);
     75
    6876        do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy);
    6977        ?>
    7078    </table>
    7179<?php
     80// Back compat hooks
    7281if ( 'category' == $taxonomy )
    7382    do_action('edit_category_form', $tag);
     83if ( 'link_category' == $taxonomy )
     84    do_action('edit_link_category_form', $tag);
    7485else
    7586    do_action('edit_tag_form', $tag);
     87
    7688do_action($taxonomy . '_edit_form', $tag, $taxonomy);
    7789?>
Note: See TracChangeset for help on using the changeset viewer.