WordPress.org

Make WordPress Core

Changeset 10775


Ignore:
Timestamp:
03/13/2009 05:24:20 AM (12 years ago)
Author:
ryan
Message:

Remember page when redirecting after tag edit. Props Viper007Bond. fixes #9220 for trunk

File:
1 edited

Legend:

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

    r10569 r10775  
    5353    wp_delete_term( $tag_ID, $taxonomy);
    5454
    55     wp_redirect('edit-tags.php?message=2');
     55    $location = 'edit-tags.php';
     56    if ( $referer = wp_get_referer() ) {
     57        if ( false !== strpos($referer, 'edit-tags.php') )
     58            $location = $referer;
     59    }
     60
     61    $location = add_query_arg('message', 2, $location);
     62    wp_redirect($location);
    5663    exit;
    5764
     
    272279    <label for="name"><?php _e('Tag name') ?></label>
    273280    <input name="name" id="name" type="text" value="" size="40" aria-required="true" />
    274     <p><?php _e('The name is how the tag appears on your site.'); ?></p>
     281    <p><?php _e('The name is how the tag appears on your site.'); ?></p>
    275282</div>
    276283
     
    278285    <label for="slug"><?php _e('Tag slug') ?></label>
    279286    <input name="slug" id="slug" type="text" value="" size="40" />
    280     <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
     287    <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
    281288</div>
    282289
Note: See TracChangeset for help on using the changeset viewer.