Remove dupe/deprecated code from sites.php
|Reported by:||wonderboymusic||Owned by:||nacin|
current_user_can( 'manage_sites' ) is called at the top of sites.php, so it doesn't need to be present in every single case in the switch statement.
The "updated" message is currently being output in the middle of an H2, I moved that below it.
The form handler is looking at every action and then passing a different action to the redirect that is only read by the message switch statement. This is weird, so I moved the action name to the "updated" query arg, since updated having a value is the same thing as updated=true&action=non-colliding-name.
There is no row action for matureblog and unmatureblog (I scanned the whole codebase), so I removed them.
Change History (8)
- Keywords commit added
- Owner set to nacin
- Status changed from new to assigned