Don't use deprecated arguments. props PeteMall, see #15605.
git-svn-id: https://develop.svn.wordpress.org/trunk@17287 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
852a939130
commit
54c72a97cb
@ -410,7 +410,7 @@ switch ( $_GET['action'] ) {
|
|||||||
if ( $details->userblog_id != $current_site->blog_id ) // main blog not a spam !
|
if ( $details->userblog_id != $current_site->blog_id ) // main blog not a spam !
|
||||||
update_blog_status( $details->userblog_id, 'spam', '1' );
|
update_blog_status( $details->userblog_id, 'spam', '1' );
|
||||||
}
|
}
|
||||||
update_user_status( $val, 'spam', '1', 1 );
|
update_user_status( $val, 'spam', '1' );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'notspam':
|
case 'notspam':
|
||||||
@ -419,7 +419,7 @@ switch ( $_GET['action'] ) {
|
|||||||
foreach ( (array) $blogs as $key => $details )
|
foreach ( (array) $blogs as $key => $details )
|
||||||
update_blog_status( $details->userblog_id, 'spam', '0' );
|
update_blog_status( $details->userblog_id, 'spam', '0' );
|
||||||
|
|
||||||
update_user_status( $val, 'spam', '0', 1 );
|
update_user_status( $val, 'spam', '0' );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user