[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
Tue Mar 26 21:08:06 UTC 2013


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

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"23800"]:
 {{{
 #!CommitTicketReference repository="" revision="23800"
 Rename 'get_search_form' action to 'pre_get_search_form' to prevent
 collision with the filter of the same name. Make sure the filtered result
 is not null to prevent search form from disappearing if an action function
 is attached to the old hook. fixes #19321.
 }}}

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


More information about the wp-trac mailing list