[wp-trac] Re: [WordPress Trac] #2433: Provide some API for WP_Rewrite

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 14 22:38:25 GMT 2006

#2433: Provide some API for WP_Rewrite
       Id:  2433            |      Status:  new                     
Component:  Administration  |    Modified:  Tue Feb 14 22:38:24 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  davidhouse              
Comment (by davidhouse):

 Pass two. Just a bugfix for my previous patch, I'm yet to add
 add_endpoint() and add_feed(). Issues raised:

  * How to handle rewrite rules that won't redirect to index.php (i.e.,
 general purpose rewrite rules that don't involve WP)? I've taken the view
 that WP_Rewrite should be a general-purpose rewrite rules handler (it's
 only a few lines of code away from being one anyway) that should always be
 used when adding rewrite rules to .htaccess, so I've written a few lines
 to deal with these types of rules. They're stored in
 WP_Rewrite::non_wp_rules and in a loop in mod_rewrite_rules() outputs them
 before the rest of WP's rules (note that if you were using the verbose
 rules before then these types of rules were already handled).
  * During debugging I had to plough through generate_rewrite_rules and I
 decided enough was enough, so I've gone through and added comments to
 nearly every line.

Ticket URL: <http://trac.wordpress.org/ticket/2433>
WordPress Trac <http://wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list