[wp-trac] [WordPress Trac] #45968: extend get_search_form() to allow placeholder text to be passed into method
WordPress Trac
noreply at wordpress.org
Sun Jan 13 00:54:48 UTC 2019
#45968: extend get_search_form() to allow placeholder text to be passed into method
-----------------------------+-----------------------------
Reporter: gege90ererefeee | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: minor | Keywords:
Focuses: |
-----------------------------+-----------------------------
Desire:
get_search_form('Search here...');
Output
<input type="submit" id="searchsubmit" value="Search" placeholder="Search
here...">
To allow the developer to manually set a placeholder text when invoking
the native wp search form. This removes the need for unnecessary JS, php
methods to override, or creating a searchform.php file just to set a
placeholder text.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45968>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list