Make WordPress Core

Ticket #15249: 15249.3.patch

File 15249.3.patch, 961 bytes (added by sc0ttkclark, 14 years ago)

Updated patch for new $wild var in user get_search_sql

  • wp-includes/comment.php

     
    351351                foreach ( $cols as $col )
    352352                        $searches[] = "$col LIKE '%$string%'";
    353353
    354                 return ' AND (' . implode(' OR ', $searches) . ')';
     354                return apply_filters_ref_array( 'comment_search_sql', array(' AND (' . implode(' OR ', $searches) . ')', $string, $cols, $searches ) );
    355355        }
    356356}
    357357
  • wp-includes/user.php

     
    549549                                $searches[] = "$col LIKE '$string$wild_char'";
    550550                }
    551551
    552                 return ' AND (' . implode(' OR ', $searches) . ')';
     552                return apply_filters_ref_array( 'user_search_sql', array(' AND (' . implode(' OR ', $searches) . ')', $string, $cols, $searches, $wild ) );
    553553        }
    554554
    555555        /**