WordPress.org

Make WordPress Core

Changeset 10311


Ignore:
Timestamp:
01/05/2009 07:24:49 PM (9 years ago)
Author:
ryan
Message:

Preserve query string when redirecting to tools. Props simonwheatley. fixes #8774 for trunk

File:
1 edited

Legend:

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

    r9979 r10311  
    6262        // backwards compatibility for plugins using add_management_page
    6363        if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) {
    64             wp_redirect('tools.php?page=' . $plugin_page);
     64            // There could be plugin specific params on the URL, so we need the whole query string
     65            if ( !empty($_SERVER[ 'QUERY_STRING' ]) )
     66                $query_string = $_SERVER[ 'QUERY_STRING' ];
     67            else
     68                $query_string = 'page=' . $plugin_page;
     69            wp_redirect( 'tools.php?' . $query_string );
    6570            exit;
    6671        }
Note: See TracChangeset for help on using the changeset viewer.