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

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 15 22:53:52 GMT 2006


#2433: Provide some API for WP_Rewrite
----------------------------+-----------------------------------------------
       Id:  2433            |      Status:  new                     
Component:  Administration  |    Modified:  Wed Feb 15 22:53:52 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  davidhouse              
----------------------------+-----------------------------------------------
Comment (by majelbstoat):

 The case exists where a plugin could want to apply a different string to
 the ends of different kinds of links, so an array would be nice.

 I think PHP can do bitwise OR of flags?  Something like

 add_end_point('myfunction1', DATE_LINK || CATEGORY_LINK || AUTHOR_LINK);
 add_end_point('myfunction2', PERMALINK);

 would be flexible.

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


More information about the wp-trac mailing list