[wp-trac] [WordPress Trac] #35821: WP_Query( array( 'name' => '' ) )

WordPress Trac noreply at wordpress.org
Fri Feb 12 21:59:17 UTC 2016

#35821: WP_Query( array( 'name' => '' )  )
 Reporter:  ChiefAlchemist  |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Query           |     Version:  4.4.2
 Severity:  normal          |  Resolution:  wontfix
 Keywords:                  |     Focuses:
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => wontfix
 * component:  Database => Query
 * milestone:  Awaiting Review =>


 Related: #35820 ("other bug I just reported").

 > Mind you, in the DB, 'name' should never be . Therefore such a query
 should return nothing. It doesn't' return nothing ;)

 `post_name` can be empty, and in fact is empty, in the case of post
 drafts. For this reason, I think the back-compat concerns are greater in
 this case than in the case of `0`, which can never be a valid post ID.

 > p.s. If there a reason why WP_Query() isn't in the component select

 It's "Query".

Ticket URL: <https://core.trac.wordpress.org/ticket/35821#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list