[wp-trac] Re: [WordPress Trac] #8575: Add filter to modify rewrite
rules
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 11 13:54:24 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 rmccue):
Replying to [comment:2 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.
Seeing if http://cubegames.net/code/drr.phps works for him. It hooks into
rewrite_rules_array and simply returns an empty array. *Should* work.
--
Ticket URL: <http://trac.wordpress.org/ticket/8575#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list