[wp-trac] [WordPress Trac] #49368: Posts query is broken after changeset 47181
WordPress Trac
noreply at wordpress.org
Wed Feb 5 17:14:26 UTC 2020
#49368: Posts query is broken after changeset 47181
-------------------------------+---------------------
Reporter: audrasjb | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 5.4
Component: Posts, Post Types | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+---------------------
Comment (by SergeyBiryukov):
Replying to [ticket:49368 audrasjb]:
> Running trunk, there is a 404 on every Posts/Page in front end.
Thanks for catching that!
I can reproduce the issue in [47179], which indeed had some broken logic,
not allowing any posts with a public status to be viewed. This was also
confirmed by [https://travis-ci.com/WordPress/wordpress-
develop/jobs/283600473 unit test failures on Travis].
However, that should be fixed in [47181], which added an `if ( !
$post_status_obj )` check to the `else` part of the initial condition.
This seems to work as expected, and the [https://travis-ci.com/WordPress
/wordpress-develop/builds/147479670 unit tests also pass].
Unfortunately, [47179] made it into the nightly build, while [47181] did
not. The nightly build is now refreshed, could you [https://wordpress.org
/nightly-builds/wordpress-latest.zip download it] and double-check? Thanks
again :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49368#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list