[wp-trac] [WordPress Trac] #19871: add_rewrite_tag() should take same params as WP_Rewrite::add_rewrite_tag()

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 21 11:31:36 UTC 2012


#19871: add_rewrite_tag() should take same params as WP_Rewrite::add_rewrite_tag()
---------------------------+-----------------------------
 Reporter:  duck_          |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  2.1
 Severity:  normal         |   Keywords:  has-patch
---------------------------+-----------------------------
 The function and instance method have different signatures:

 {{{
 add_rewrite_tag( $tagname, $regex )
 }}}

 vs.

 {{{
 WP_Rewrite::add_rewrite_tag( $tag, $pattern, $query )
 }}}

 add_rewrite_tag() should have a third parameter too.

 See: #2433 and [3638]

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


More information about the wp-trac mailing list