Changeset 15452 for branches/3.0/wp-includes/ms-functions.php
- Timestamp:
- 07/21/2010 08:10:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-includes/ms-functions.php
r15403 r15452 376 376 377 377 function is_blog_user( $blog_id = 0 ) { 378 global $current_user, $wpdb; 379 378 global $wpdb; 379 380 $current_user = wp_get_current_user(); 380 381 if ( !$blog_id ) 381 382 $blog_id = $wpdb->blogid; … … 1323 1324 function is_user_spammy( $username = 0 ) { 1324 1325 if ( $username == 0 ) { 1325 global $current_user; 1326 $user_id = $current_user->ID; 1326 $user_id = get_current_user_id(); 1327 1327 } else { 1328 1328 $user_id = get_user_id_from_string( $username ); … … 1361 1361 1362 1362 function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) { 1363 global $current_user, $wpdb; 1364 1363 global $wpdb; 1364 1365 $current_user = wp_get_current_user(); 1365 1366 if ( $user_id == 0 ) 1366 1367 $user_id = $current_user->ID;
Note: See TracChangeset
for help on using the changeset viewer.