WordPress.org

Make WordPress Core

Changeset 17238


Ignore:
Timestamp:
01/07/2011 07:58:25 PM (11 years ago)
Author:
ryan
Message:

Fix post theme delete redirect. Props greuben. see #16117

File:
1 edited

Legend:

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

    r17237 r17238  
    162162            foreach ( $themes as $theme )
    163163                $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) );
    164             wp_redirect( add_query_arg( 'deleted', count( $themes ), $referer ) );
     164            $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1;
     165            wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) );
    165166            exit;
    166167            break;
Note: See TracChangeset for help on using the changeset viewer.