Redirection to options.php after session destroyed
|Reported by:||fitztrev||Owned by:|
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.