[wp-trac] [WordPress Trac] #18040: Turning on permalinks, CPT rewrites are ignored
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 8 21:28:03 UTC 2011
#18040: Turning on permalinks, CPT rewrites are ignored
------------------------------------+------------------------------
Reporter: andy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.2
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Comment (by andy):
In defense of the 3.2.1 designation, this is a backwards compatible bug
fix in the existing API rather than new API functionality.
The damage this bug does is fairly subtle because the correct behavior
eventually occurs. The registered rules are obeyed on the second flush
after `permalink_structure` is populated. Flushes are triggered by many
common actions: loading the Permalink Settings page, activate a plugin,
save a plugin option, do an automatic upgrade, etc.
It is incorrect for the first flush to produce a different set of rules
than the second flush. The patch I proposed is an internal change that
fixes incorrect behavior.
Replying to [comment:2 pavelevap]:
> Related?
>
> http://core.trac.wordpress.org/ticket/16736
Yes, good find.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18040#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list