WordPress.org

Make WordPress Core

Ticket #16117: greuben-16117-rev2.diff

File greuben-16117-rev2.diff, 566 bytes (added by greuben, 3 years ago)

I think this looks better than my previous patch

  • 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                        $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 
     165                        wp_redirect( self_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 
    165166                        exit; 
    166167                        break; 
    167168        }