[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:43:22 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 SergeyBiryukov):

 Replying to [comment:6 DrewAPicture]:
 > What about something like 'pre_get_search_form' instead?

 Works for me. That was my initial idea as well, but it seemed that `pre_*`
 is often used in core for filters, so I thought it might be confusing as
 an action name.

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


More information about the wp-trac mailing list