[buddypress-trac] [BuddyPress] #4835: Latest Post in Blogs Directory

buddypress-trac noreply at wordpress.org
Mon Feb 18 11:19:33 UTC 2013


#4835: Latest Post in Blogs Directory
--------------------------+-----------------------------
 Reporter:  unsalkorkmaz  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.7
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 Latest post for blogs directory:
 {{{
 $paged_blogs[$i]->latest_post = $wpdb->get_row( "SELECT ID, post_content,
 post_title, post_excerpt, guid FROM {$blog_prefix}posts WHERE post_status
 = 'publish' AND post_type = 'post' AND id != 1 ORDER BY id DESC LIMIT 1"
 );
 }}}
 Hardcoding post_type = 'post' is just wrong. Basically we cant show custom
 post types in there. Why not use {$blog_prefix}bp_activity table?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4835>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list