Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#19891 closed defect (bug) (fixed)

get_most_recent_post_of_user() should use get_blog_prefix()

Reported by: nacin Owned by: nacin
Milestone: 3.4 Priority: normal
Severity: normal Version:
Component: Multisite Keywords: close
Focuses: Cc:


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.

Change History (5)

#1 @nacin
10 years ago

In [19748]:

Use get_blog_prefix() in get_most_recent_post_of_user(). see #19891.

#2 @nacin
10 years ago

In [19749]:

Use get_blog_prefix() in another MU function. see #19891.

#3 @edward mindreantre
10 years ago

You've fixed this in those two revisions.

#4 @jkudish
10 years ago

  • Keywords close added
  • Owner set to nacin
  • Status changed from new to assigned

#5 @nacin
10 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.