Ticket #8774: query_string_integrity.diff
File query_string_integrity.diff, 838 bytes (added by , 16 years ago) |
---|
-
Users/simon/Projects/WordPress/site/wordpress/wp-admin/admin.php
61 61 $page_hook = get_plugin_page_hook($plugin_page, $plugin_page); 62 62 // backwards compatibility for plugins using add_management_page 63 63 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 $query_string = $_SERVER[ 'QUERY_STRING' ]; 66 wp_redirect( 'tools.php?' . $query_string ); 65 67 exit; 66 68 } 67 69 }