WordPress.org

Make WordPress Core

Ticket #16854: query-patch-for-multiple-exclude-authors.patch

File query-patch-for-multiple-exclude-authors.patch, 442 bytes (added by commentluv, 4 years ago)

patch for wp-includes/query.php for wordpress version 3.1

  • wp-includes/query.php

     
    22212221                                $eq = '!='; 
    22222222                                $andor = 'AND'; 
    22232223                                $q['author'] = explode('-', $q['author']); 
    2224                                 $q['author'] = (string)absint($q['author'][1]); 
     2224                                $q['author'] = implode('',$q['author']); 
    22252225                        } else { 
    22262226                                $eq = '='; 
    22272227                                $andor = 'OR';