[wp-trac] [WordPress Trac] #30354: get_posts_by_author_sql doesn't also return prefixed where is asked to

WordPress Trac noreply at wordpress.org
Thu Dec 4 09:11:37 UTC 2014


#30354: get_posts_by_author_sql doesn't also return prefixed where is asked to
--------------------------------------+------------------------------
 Reporter:  pbearne                   |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Query                     |     Version:  3.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:  administration
--------------------------------------+------------------------------
Changes (by johnbillion):

 * version:  trunk => 3.0


Comment:

 Thanks for the patch.

 `wp_list_authors()` calls `get_private_posts_cap_sql()` which calls
 `get_posts_by_author_sql()` with the `$full` parameter set to `false`. How
 is this affected by your patch?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30354#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list