Skip to content

Commit

Permalink
Networks and Sites: Exit after wp_redirect() in `wp-admin/ms-option…
Browse files Browse the repository at this point in the history
…s.php`.

This brings more consistency with the other files having the same pattern:

* `wp-admin/moderation.php`
* `wp-admin/ms-admin.php`
* `wp-admin/ms-edit.php`
* `wp-admin/ms-sites.php`
* `wp-admin/ms-themes.php`
* `wp-admin/ms-upgrade-network.php`
* `wp-admin/ms-users.php`

Follow-up to [15481], [16847].

Props jigar-bhanushali, jorbin, johnbillion, Presskopp, rajinsharwar, audrasjb, SergeyBiryukov.
Fixes #60926.

git-svn-id: https://develop.svn.wordpress.org/trunk@58460 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jun 22, 2024
1 parent da58ca7 commit b04edac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wp-admin/ms-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
require_once __DIR__ . '/admin.php';

wp_redirect( network_admin_url( 'settings.php' ) );
exit;

0 comments on commit b04edac

Please sign in to comment.