Making WordPress.org

Ticket #7814: 7814.diff

File 7814.diff, 482 bytes (added by ryelle, 16 months ago)
  • inc/search.php

     
    127127                global $wpdb;
    128128
    129129                if ( self::is_search( $query ) ) {
    130                         $insert_at = strpos( $where, 'OR (' . $wpdb->prefix . 'posts.post_content LIKE ' );
     130                        $insert_at = strpos( $where, 'OR (' . $wpdb->prefix . 'posts.post_content REGEXP ' );
    131131                        if ( $insert_at ) {
    132132                                $or_tag = $wpdb->prepare( "OR
    133133                                        (