WordPress.org

Make WordPress Core

Ticket #15249: 15249.4.patch

File 15249.4.patch, 1.3 KB (added by sc0ttkclark, 19 months ago)

Refreshing this patch w/ 3.5 trunk

  • trunk/wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    594594                                $searches[] = "$col LIKE '$leading_wild" . like_escape($string) . "$trailing_wild'"; 
    595595                } 
    596596 
    597                 return ' AND (' . implode(' OR ', $searches) . ')'; 
     597                $search = ' AND (' . implode(' OR ', $searches) . ')'; 
     598 
     599                return apply_filters_ref_array( 'user_search_sql', array( $search, $string, $cols, $searches, $wild ) ); 
    598600        } 
    599601 
    600602        /** 
  • trunk/wp-includes/comment.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    372372                foreach ( $cols as $col ) 
    373373                        $searches[] = "$col LIKE '%$string%'"; 
    374374 
    375                 return ' AND (' . implode(' OR ', $searches) . ')'; 
     375                $search = ' AND (' . implode(' OR ', $searches) . ')'; 
     376 
     377                return apply_filters_ref_array( 'comment_search_sql', array( $search, $string, $cols, $searches ) ); 
    376378        } 
    377379} 
    378380