WordPress.org

Make WordPress Core

Ticket #15249: 15249.2.patch

File 15249.2.patch, 954 bytes (added by sc0ttkclark, 7 years ago)

Updated patch for latest SVN Revision (16692)

  • 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 ) );
    553553        }
    554554
    555555        /**