Skip to content
Permalink
Browse files

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.

git-svn-id: https://develop.svn.wordpress.org/trunk@46384 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
desrosj committed Oct 4, 2019
1 parent 17765e9 commit f183dd84f13587ed842c9bc3b185ed62e4923ff1
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/wp-admin/network/sites.php
@@ -231,9 +231,13 @@
wp_safe_redirect( $redirect_to );
exit();
}
} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
// process query defined by WP_MS_Site_List_Table::extra_table_nav().
wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
} else {
// Process query defined by WP_MS_Site_List_Table::extra_table_nav().
$location = remove_query_arg(
array( '_wp_http_referer', '_wpnonce' ),
add_query_arg( $_POST, network_admin_url( 'sites.php' ) )
);
wp_redirect( $location );
exit;
}

0 comments on commit f183dd8

Please sign in to comment.
You can’t perform that action at this time.