Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19321, comment 5


Ignore:
Timestamp:
03/22/2013 05:50:01 PM (12 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19321, comment 5

    initial v1  
    11> The get_search_form() functions starts calling the action 'get_search_form', and its ends applying the filter 'get_search_form' if a searchform.php file doesn't exists.
    22
    3 With the changes in #16541, the filter is now applied if `searchform.php` exists as well.
     3With the changes in #16541, the filter is now applied if `searchform.php` exists as well, which made the issue more prominent.
    44
    55If 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. If it's hooked as a filter, it still runs twice, but at least properly returns the value.