[wp-trac] [WordPress Trac] #19321: get_search_form() function calls an action and a filter with the same hook.

WordPress Trac noreply at wordpress.org
Fri Mar 22 21:36:45 UTC 2013


#19321: get_search_form() function calls an action and a filter with the same hook.
--------------------------+------------------
 Reporter:  marquex       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Template      |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by DrewAPicture):

 Replying to [comment:5 SergeyBiryukov]:
 > I guess we should rename the action. I'd suggest
 `get_search_form_before`.

 I don't like 'before' because it implies there's a matching "after"
 filter, a la the theme hooks debate. What about something like
 'pre_get_search_form' instead?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19321#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list