mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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:
parent
d5f124f45e
commit
9c5afca0f3
@ -18,16 +18,12 @@ if ( empty($tag_ID) ) { ?>
|
|||||||
|
|
||||||
// Back compat hooks
|
// Back compat hooks
|
||||||
if ( 'category' == $taxonomy ) {
|
if ( 'category' == $taxonomy ) {
|
||||||
/** This action is documented in wp-admin/edit-tags.php */
|
|
||||||
do_action( 'edit_category_form_pre', $tag );
|
do_action( 'edit_category_form_pre', $tag );
|
||||||
} elseif ( 'link_category' == $taxonomy ) {
|
} elseif ( 'link_category' == $taxonomy ) {
|
||||||
/** This action is documented in wp-admin/edit-tags.php */
|
|
||||||
do_action( 'edit_link_category_form_pre', $tag );
|
do_action( 'edit_link_category_form_pre', $tag );
|
||||||
} else {
|
} else {
|
||||||
/** This action is documented in wp-admin/edit-tags.php */
|
|
||||||
do_action( 'edit_tag_form_pre', $tag );
|
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 ); ?>
|
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
@ -337,6 +337,7 @@ endif; ?>
|
|||||||
|
|
||||||
<?php if ( 'category' == $taxonomy ) : ?>
|
<?php if ( 'category' == $taxonomy ) : ?>
|
||||||
<div class="form-wrap">
|
<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>
|
<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' ) ) : ?>
|
<?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>
|
<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.
|
* 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" ); ?>>
|
<form id="addtag" method="post" action="edit-tags.php" class="validate"<?php do_action( "{$taxonomy}_term_new_form_tag" ); ?>>
|
||||||
|
Loading…
Reference in New Issue
Block a user