Opened 5 years ago
Closed 5 years ago
#35821 closed defect (bug) (wontfix)
WP_Query( array( 'name' => '' ) )
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4.2 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
Similar to the other bug I just reported.
When in the query is: 'name' => I'm getting results.
Mind you, in the DB, 'name' should never be . Therefore such a query should return nothing. It doesn't' return nothing ;)
p.s. If there a reason why WP_Query() isn't in the component select below?
Change History (1)
Note: See
TracTickets for help on using
tickets.
Related: #35820 ("other bug I just reported").
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 of0
, which can never be a valid post ID.It's "Query".