[wp-trac] [WordPress Trac] #60926: Missing calling `exit` after using `wp_redirect`

WordPress Trac noreply at wordpress.org
Sat Jun 22 11:45:19 UTC 2024


#60926: Missing calling `exit` after using `wp_redirect`
--------------------------------+----------------------------------------
 Reporter:  jigar bhanushali    |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.6
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  administration, multisite
--------------------------------+----------------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58460" 58460]:
 {{{
 #!CommitTicketReference repository="" revision="58460"
 Networks and Sites: Exit after `wp_redirect()` in `wp-admin/ms-
 options.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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60926#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list