WordPress.org

Make WordPress Core

Ticket #16117: greuben-16117.diff

File greuben-16117.diff, 494 bytes (added by greuben, 7 years ago)

remove unnecessary query args before redirecting

  • wp-admin/network/themes.php

     
    161161
    162162                        foreach ( $themes as $theme )
    163163                                $delete_result = delete_theme( $theme );
     164                        $referer = remove_query_arg( array( 'action', 'checked', 'theme_status' ) , $referer );
    164165                        wp_redirect( add_query_arg( 'deleted', count( $themes ), $referer ) );
    165166                        exit;
    166167                        break;