[wp-trac] [WordPress Trac] #28307: Ajax for Post Search
WordPress Trac
noreply at wordpress.org
Thu May 29 14:51:09 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 adamsilverstein):
Replying to [comment:12 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.
Good point! I will add that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28307#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list