[wp-trac] [WordPress Trac] #28307: Ajax for Post Search
WordPress Trac
noreply at wordpress.org
Thu May 29 14:23:46 UTC 2014
#28307: Ajax for Post Search
-----------------------------+-------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.0
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-----------------------------+-------------------------
Comment (by SergeyBiryukov):
{{{
if ( strlen( $term ) < 2 ) {
wp_die(); // require 2 chars for matching
}
}}}
For a more accurate check, we should use `mb_strlen()` if it exists, and
fall back to `strlen()` if it doesn't.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28307#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list