|Reported by:||dd32||Owned by:||dd32|
The 2.9 options.php only contained 2 cases where exiting was required, Specifically, if ( !current_user_can('manage_options') ) and if the whitelisted page was not available.
trunk currently contains a few Multisite additions for death of the loading, Some of these apply to non-MS installs as well.
Attached patch is an attempt at cleaning up some blocks of the code.
- Consolidates wp_die()'s to the top of the file
- Multisite checks allow for non-super-admins to update options, not to access the options.php page
- Code formatting
- Reduced if branching
- Removes single-case switch in favour of if