[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:49:07 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:5 SergeyBiryukov]:
 > If a function is hooked to `get_search_form` as an action (e.g. to print
 something), it runs twice, so the output is printed twice.

 It also kills the search form if it doesn't return anything.

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


More information about the wp-trac mailing list