Cleanup incorrect duplicate comments for hooks in wp-admin/edit-tag-form.php introduced in [26274].

Also corrects the @since version for {$taxonomy}_term_new_form_tag in wp-admin/edit-tags.php.

Props kpdesign. See #25532.

Built from https://develop.svn.wordpress.org/trunk@26339


git-svn-id: http://core.svn.wordpress.org/trunk@26240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-11-23 21:18:10 +00:00
parent d5f124f45e
commit 9c5afca0f3
2 changed files with 2 additions and 5 deletions

View File

@ -18,16 +18,12 @@ if ( empty($tag_ID) ) { ?>
// Back compat hooks
if ( 'category' == $taxonomy ) {
/** This action is documented in wp-admin/edit-tags.php */
do_action( 'edit_category_form_pre', $tag );
} elseif ( 'link_category' == $taxonomy ) {
/** This action is documented in wp-admin/edit-tags.php */
do_action( 'edit_link_category_form_pre', $tag );
} else {
/** This action is documented in wp-admin/edit-tags.php */
do_action( 'edit_tag_form_pre', $tag );
}
/** This action is documented in wp-admin/edit-tags.php */
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
<div class="wrap">

View File

@ -337,6 +337,7 @@ endif; ?>
<?php if ( 'category' == $taxonomy ) : ?>
<div class="form-wrap">
<?php /** This filter is documented in wp-includes/category-template.php */ ?>
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_cat_name(get_option('default_category')))) ?></p>
<?php if ( current_user_can( 'import' ) ) : ?>
<p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'import.php') ?></p>
@ -437,7 +438,7 @@ if ( current_user_can($tax->cap->edit_terms) ) {
*
* The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
*
* @since 3.0.0
* @since 3.7.0
*/
?>
<form id="addtag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_new_form_tag" ); ?>>