[wp-trac] Re: [WordPress Trac] #2433: Provide some API for
WP_Rewrite
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 27 03:56:47 GMT 2006
#2433: Provide some API for WP_Rewrite
----------------------------+-----------------------------------------------
Id: 2433 | Status: new
Component: Administration | Modified: Mon Feb 27 03:56:47 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.0.1
Owner: anonymous | Reporter: davidhouse
----------------------------+-----------------------------------------------
Comment (by ryan):
Some suggestions, lets use callbacks instead of files for add_feed().
Change wp-feed.php to kick the callback for the requested feed. The
callback can load a file or generate the feed itself.
Rename add_extra_qv() to add_query_var().
Rename add_extra_rule() to add_rule().
Rename add_non_wp_rule() to add_external_rule().
Maybe put WP_Rewrite and thee add_rewrite() wrapper functions in
rewrite.php.
Would adding an optional argument to add_rewrite_tag() that installs a
template_redirect callback be useful? Might not be enough added
convenience to be worthwhile.
--
Ticket URL: <http://trac.wordpress.org/ticket/2433>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list