[wp-trac] [WordPress Trac] #18450: New safe action to add rewrite rules on
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 17 00:48:17 UTC 2011
#18450: New safe action to add rewrite rules on
------------------------------------+------------------------------
Reporter: simonwheatley | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by scribu):
Other advantages of 'pre_flush_rewrite_rules':
* lower memory footprint: $wp_rewrite isn't filled with additional rules
on each page load
* simpler: you only need to hook into one place, instead of 'init' +
activation hook
This hook should be used by register_post_type() as well, instead of
immediately calling $wp_rewrite. Idem for register_taxonomy().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18450#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list