Changeset 19748
- Timestamp:
- 01/25/2012 12:09:30 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/ms-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r19747 r19748 1369 1369 // published by $user_id 1370 1370 foreach ( (array) $user_blogs as $blog ) { 1371 $recent_post = $wpdb->get_row( $wpdb->prepare("SELECT ID, post_date_gmt FROM {$wpdb->base_prefix}{$blog->userblog_id}_posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish' ORDER BY post_date_gmt DESC LIMIT 1", $user_id ), ARRAY_A); 1371 $prefix = $wpdb->get_blog_prefix( $blog->userblog_id ); 1372 $recent_post = $wpdb->get_row( $wpdb->prepare("SELECT ID, post_date_gmt FROM {$prefix}posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish' ORDER BY post_date_gmt DESC LIMIT 1", $user_id ), ARRAY_A); 1372 1373 1373 1374 // Make sure we found a post
Note: See TracChangeset
for help on using the changeset viewer.