WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25709, comment 15


Ignore:
Timestamp:
10/29/2013 10:21:23 AM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25709, comment 15

    initial v1  
    1 > if ( ! $term || ( 1 === strlen( $term ) && preg_match( '/^[a-z]$/i', $term ) ) )
     1> `if ( ! $term || ( 1 === strlen( $term ) && preg_match( '/^[a-z]$/i', $term ) ) )`
    22
    33That doesn't sound right to me, specifically, the strlen() component.