Make WordPress Core


Ignore:
Timestamp:
10/04/2019 02:31:05 PM (5 years ago)
Author:
desrosj
Message:

Networks and Sites: Fix issues processing additional fields displayed for the Sites list table.

This prevents a The link you followed has expired. error when using a filter and now uses $_POST instead of $_GET to capture all form values.

Props pbiron.
Fixes #45954.

File:
1 edited

Legend:

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

    r46251 r46384  
    232232                    exit();
    233233                }
    234             } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
    235                 // process query defined by WP_MS_Site_List_Table::extra_table_nav().
    236                 wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
     234            } else {
     235                // Process query defined by WP_MS_Site_List_Table::extra_table_nav().
     236                $location = remove_query_arg(
     237                    array( '_wp_http_referer', '_wpnonce' ),
     238                    add_query_arg( $_POST, network_admin_url( 'sites.php' ) )
     239                );
     240                wp_redirect( $location );
    237241                exit;
    238242            }
Note: See TracChangeset for help on using the changeset viewer.