[wp-trac] [WordPress Trac] #51094: WP_Query.query with invalid post_status will return all

WordPress Trac noreply at wordpress.org
Fri Feb 12 12:28:22 UTC 2021


#51094: WP_Query.query with invalid post_status will return all
-------------------------------------------------+-------------------------
 Reporter:  carsonreinke                         |       Owner:
                                                 |  metalandcoffee
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.7
Component:  Query                                |     Version:  3.9
 Severity:  critical                             |  Resolution:
 Keywords:  dev-feedback has-patch needs-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by leogermani):

 Hi, I just want to bring this other ticket to attention here:

 https://core.trac.wordpress.org/ticket/48556

 It's changing the behavior in the same place. It was merged into trunk but
 reverted due to a regression already addressed.

 If you agree, I could add some unit tests there and address this issue in
 the same patch so we don't conflict.

 Otherwise, it's better if we decide which patch goes first so the other
 can adapt.

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


More information about the wp-trac mailing list