[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
Mon Dec 8 16:06:59 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
--------------------------------------+------------------------------

Comment (by pbearne):

 I have had look in core code and this function is called 4 times and only
 once with the false option

 the updated patch fixes that call

 I also did a Google search for the function call and got not results so it
 looks safe to patch

 the worse case it the we will end up with 2 "and post_type = 'post' " in
 the SQL

 Paul

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


More information about the wp-trac mailing list