[wp-trac] [WordPress Trac] #31140: WordPress 4.0 upgrade caused 404 on single custom post types
WordPress Trac
noreply at wordpress.org
Tue Feb 3 08:06:03 UTC 2015
#31140: WordPress 4.0 upgrade caused 404 on single custom post types
-------------------------------+-------------------------
Reporter: MarjWyatt | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: 4.0
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
-------------------------------+-------------------------
Comment (by dd32):
There is the potential something changed between 3.9 and 4.0, but my
inability to duplicate the issue you're seeing on 4.1 doesn't allow me to
find out if that's the case.
The code would've been broken on 3.9 - `is_singular('wsg-intros`)`
would've always returned false. Although there's the possibility it was
working because you had a 2nd posts loop later in the page load (or in the
sidebar) where it was referencing the main query still.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31140#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list