Make sure we don't double-add -user or -network suffixes in convert_to_screen(). props SergeyBiryukov. fixes #16348
git-svn-id: https://develop.svn.wordpress.org/trunk@17356 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b5de468b5b
commit
e0f37101f7
@ -1660,7 +1660,7 @@ function _post_states($post) {
|
||||
* @return object An object containing the safe screen name and id
|
||||
*/
|
||||
function convert_to_screen( $screen ) {
|
||||
$screen = str_replace( array('.php', '-new', '-add' ), '', $screen);
|
||||
$screen = str_replace( array('.php', '-new', '-add', '-network', '-user' ), '', $screen);
|
||||
|
||||
if ( is_network_admin() )
|
||||
$screen .= '-network';
|
||||
|
Loading…
Reference in New Issue
Block a user