Changes between Initial Version and Version 1 of Ticket #19321, comment 5
- Timestamp:
- 03/22/2013 05:50:01 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19321, comment 5
initial v1 1 1 > 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. 2 2 3 With the changes in #16541, the filter is now applied if `searchform.php` exists as well .3 With the changes in #16541, the filter is now applied if `searchform.php` exists as well, which made the issue more prominent. 4 4 5 5 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. If it's hooked as a filter, it still runs twice, but at least properly returns the value.