Make WordPress Core

Ticket #26758: 26758-edit-tags.php.patch

File 26758-edit-tags.php.patch, 431 bytes (added by UmeshSingla, 10 years ago)

Checks for referer instead of original referer for 'edittag' case

  • edit-tags.php

     
    148148        if ( 'post' != $post_type )
    149149                $location .= '&post_type=' . $post_type;
    150150
    151         if ( $referer = wp_get_original_referer() ) {
     151        if ( $referer = wp_get_referer() ) {
    152152                if ( false !== strpos( $referer, 'edit-tags.php' ) )
    153153                        $location = $referer;
    154154        }