[wp-trac] [WordPress Trac] #26242: Customize page empty in a theme with 'theme' post type, very strange
WordPress Trac
noreply at wordpress.org
Tue Nov 26 03:03:13 UTC 2013
#26242: Customize page empty in a theme with 'theme' post type, very strange
--------------------------+----------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Appearance | Version:
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by dd32):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
There are many more reserved post type names than that.. Those are the
names which exist within the database, but there's a 2nd angle to it.
But registering a post_type with 'theme' and not including the query_var,
it defaults to the post type slug 'theme'.
Since we use 'theme' as a query var for previewing, that's passed in the
request, ie. "http://wordpress/src/?theme=some-theme-name", That causes
WordPress to look for a post_type of theme with the slug 'some-theme-
name', which will 404.
When the customizer 404's, it doesn't load the customize frame.
Ultimately, Prefix your things - That means post types too, 'my_themes' as
a post type wouldn't have interfered.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26242#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list