mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Remember page when redirecting after tag edit. Props Viper007Bond. fixes #9220 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b1222311f7
commit
94e5cffaa7
@ -52,7 +52,14 @@ case 'delete':
|
||||
|
||||
wp_delete_term( $tag_ID, $taxonomy);
|
||||
|
||||
wp_redirect('edit-tags.php?message=2');
|
||||
$location = 'edit-tags.php';
|
||||
if ( $referer = wp_get_referer() ) {
|
||||
if ( false !== strpos($referer, 'edit-tags.php') )
|
||||
$location = $referer;
|
||||
}
|
||||
|
||||
$location = add_query_arg('message', 2, $location);
|
||||
wp_redirect($location);
|
||||
exit;
|
||||
|
||||
break;
|
||||
@ -271,13 +278,13 @@ else
|
||||
<div class="form-field form-required">
|
||||
<label for="name"><?php _e('Tag name') ?></label>
|
||||
<input name="name" id="name" type="text" value="" size="40" aria-required="true" />
|
||||
<p><?php _e('The name is how the tag appears on your site.'); ?></p>
|
||||
<p><?php _e('The name is how the tag appears on your site.'); ?></p>
|
||||
</div>
|
||||
|
||||
<div class="form-field">
|
||||
<label for="slug"><?php _e('Tag slug') ?></label>
|
||||
<input name="slug" id="slug" type="text" value="" size="40" />
|
||||
<p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
|
||||
<p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
|
||||
</div>
|
||||
|
||||
<p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Add Tag'); ?>" /></p>
|
||||
|
Loading…
Reference in New Issue
Block a user