Make WordPress Core

Ticket #16117: 16117-3.diff

File 16117-3.diff, 574 bytes (added by greuben, 14 years ago)
  • wp-admin/network/themes.php

     
    161161
    162162                        foreach ( $themes as $theme )
    163163                                $delete_result = delete_theme( $theme );
    164                         wp_redirect( add_query_arg( 'deleted', count( $themes ), $referer ) );
     164                       
     165                        $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1;
     166                        wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) );
    165167                        exit;
    166168                        break;
    167169        }