[wp-trac] [WordPress Trac] #19891: get_most_recent_post_of_user() should use get_blog_prefix()
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 25 00:02:45 UTC 2012
#19891: get_most_recent_post_of_user() should use get_blog_prefix()
--------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Multisite | Version:
Severity: normal | Keywords:
--------------------------+-----------------
Given the loop over multiple sites and the direct DB query against each
post table, this function should probably be deprecated and killed.
That said, it currently uses `{$wpdb->base_prefix}{$blog->userblog_id}`,
which won't work for the main site in 3.0+ multisite. That needs to
change.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19891>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list