[wp-trac] Re: [WordPress Trac] #8575: Add filter to modify rewrite
rules
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 11 13:32:16 GMT 2008
#8575: Add filter to modify rewrite rules
-----------------------+----------------------------------------------------
Reporter: rmccue | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------+----------------------------------------------------
Comment (by DD32):
I somewhat think the filter [http://trac.wordpress.org/browser/trunk/wp-
includes/rewrite.php#L1579 rewrite_rules_array] would do for that, It
filters the rules at the creation point.
The only thing i can see wrong with using that over your filter, would be
that a empty array returned would cause WP to regenerate the rewrite rules
every page load (an expensive thing).
..That blog post is also nearly 2 years old.
--
Ticket URL: <http://trac.wordpress.org/ticket/8575#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list