[wp-trac] [WordPress Trac] #16626: CPT archive rewrite rule doesn't respect 'with_front' arg
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 24 01:45:57 UTC 2011
#16626: CPT archive rewrite rule doesn't respect 'with_front' arg
--------------------------+--------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1.1
Component: Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Changes (by scribu):
* keywords: => has-patch
Comment:
The trouble comes from the fact that {{{$wp_rewrite->add_rule}}} is used
directly, which doesn't have a $with_front argument.
[attachment:16626.diff] fixes the current problem, but a long-term
solution would be to streamline the WP_Rewrite API.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16626#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list