WordPress.org

Make WordPress Core

Changeset 17138


Ignore:
Timestamp:
12/25/10 13:44:03 (4 years ago)
Author:
nacin
Message:

Remove redundancy in these arguments. props PeteMall, fixes #15920.

Location:
trunk/wp-admin/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-themes.php

    r17137 r17138  
    4040 
    4141// Clean up request URI from temporary args for screen options/paging uri's to work as expected. 
    42 $temp_args = array( 'enabled', 'disabled', 'deleted', 'error', 'enabled', 'disabled', 'deleted', 'error' );  
     42$temp_args = array( 'enabled', 'disabled', 'error' );  
    4343$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );  
    4444$referer = remove_query_arg( $temp_args, wp_get_referer() ); 
  • trunk/wp-admin/network/themes.php

    r17130 r17138  
    2929 
    3030// Clean up request URI from temporary args for screen options/paging uri's to work as expected. 
    31 $temp_args = array( 'enabled', 'disabled', 'deleted', 'error', 'enabled', 'disabled', 'deleted', 'error' ); 
     31$temp_args = array( 'enabled', 'disabled', 'deleted', 'error' ); 
    3232$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] ); 
    3333$referer = remove_query_arg( $temp_args, wp_get_referer() ); 
Note: See TracChangeset for help on using the changeset viewer.