mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Don't use deprecated arguments. props PeteMall, see #15605.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4920e7a54f
commit
53f10213b6
@ -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