WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#8133 closed defect (bug) (fixed)

Redirection to options.php after session destroyed

Reported by: fitztrev Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

Scenario: I had 2 tabs open making changes to the settings. I logged out from one tab. When I clicked "Save Changes" in the other, I was sent to the login page where the redirect_url query value sent me to options.php instead of options-general.php.

It does that because the actions on all the forms are to 'options.php'. When the login check is performed and fails, redirect_url is set with the REQUEST_URI of .../options.php instead of whatever options page the user was on prior to that.

Attachments (1)

login-redirect.diff (679 bytes) - added by fitztrev 6 years ago.

Download all attachments as: .zip

Change History (2)

@fitztrev6 years ago

comment:1 @markjaquith6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9775]) Do not redirect to options.php on login if user was POSTing to options.php from another page. props fitztrev. fixes #8133

Note: See TracTickets for help on using tickets.