diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-19 14:05:47 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-19 14:05:47 +0000 |
commit | a55d513922b9126c64162529792ee7875df9e2b0 (patch) | |
tree | fb36c115c4cc64c5c05f97ce75c86037260ce79a /wp-includes/wpmu-functions.php | |
parent | ec155f9e7f095def9f6c7cd5db90d05b2c3c9bb4 (diff) | |
download | wordpress-mu-a55d513922b9126c64162529792ee7875df9e2b0.tar.gz wordpress-mu-a55d513922b9126c64162529792ee7875df9e2b0.tar.xz wordpress-mu-a55d513922b9126c64162529792ee7875df9e2b0.zip |
Move functions into wp-admin/includes/mu.php because of potential conflict with bbpress, thanks beaulebens
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1112 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index cd2ba8d..bfbe5ed 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -544,35 +544,6 @@ function update_archived( $id, $archived ) { return $archived; } -function update_user_status( $id, $pref, $value, $refresh = 1 ) { - global $wpdb; - - $wpdb->query( "UPDATE {$wpdb->users} SET {$pref} = '{$value}' WHERE ID = '$id'" ); - - if( $refresh == 1 ) - refresh_user_details($id); - - if( $pref == 'spam' ) { - if( $value == 1 ) - do_action( "make_spam_user", $id ); - else - do_action( "make_ham_user", $id ); - } - - return $value; -} - -function refresh_user_details($id) { - $id = (int) $id; - - if ( !$user = get_userdata( $id ) ) - return false; - - wp_cache_delete($id, 'users'); - wp_cache_delete($user->user_login, 'userlogins'); - return $id; -} - function update_blog_status( $id, $pref, $value, $refresh = 1 ) { global $wpdb; |