[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
Sat Mar 7 01:14:33 UTC 2015


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

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31653"]:
 {{{
 #!CommitTicketReference repository="" revision="31653"
 When passing `$full` to `get_posts_by_author_sql()`, make sure a
 'post_type' clause is included in results.

 This change makes the 'post_type' clause in `wp_list_authors()` redundant,
 so
 we remove it. Third-party plugins using `get_posts_by_author_sql()` may
 have
 similarly redundant clauses, but this won't change the results returned by
 the
 SQL queries.

 Also adds unit tests for `get_posts_by_author_sql()`.

 Props pbearne.
 Fixes #30354.
 }}}

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


More information about the wp-trac mailing list