Changeset 392 for trunk/bp-core.php
- Timestamp:
- 10/12/2008 11:58:11 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r391 r392 42 42 global $current_user, $current_component, $current_action; 43 43 global $action_variables; 44 44 45 45 /* The user ID of the user who is currently logged in. */ 46 46 $bp['loggedin_userid'] = $current_user->ID; … … 1034 1034 global $bp; 1035 1035 1036 if ( !is_user_logged_in() )1036 if ( !is_user_logged_in() || !get_usermeta( $bp['loggedin_userid'], 'last_activity') ) 1037 1037 return false; 1038 1038 … … 1111 1111 add_action( 'get_comment_author_link', 'bp_core_replace_comment_author_link', 10, 4 ); 1112 1112 1113 /** 1114 * bp_core_get_site_path() 1115 * 1116 * Get the path of of the current site. 1117 * 1118 * @package BuddyPress Core 1119 * @global $comment WordPress comment global for the current comment. 1120 * @uses bp_core_get_userlink_by_email() Fetches a userlink via email address. 1121 */ 1122 function bp_core_get_site_path() { 1123 global $wpdb; 1124 1125 return $wpdb->get_var( $wpdb->prepare( "SELECT path FROM {$wpdb->base_prefix}site WHERE id = 1") ); 1126 } 1113 1127 1114 1128 /**
Note: See TracChangeset
for help on using the changeset viewer.