WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 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:

Description

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)

comment:1 nacin2 years ago

In [19748]:

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

comment:2 nacin2 years ago

In [19749]:

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

comment:3 edward mindreantre2 years ago

You've fixed this in those two revisions.

comment:4 jkudish2 years ago

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

comment:5 nacin2 years ago

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