1 | 290a291,310 |
---|
2 | > $authors = ''; |
---|
3 | > if (!empty($r['authors'])) { |
---|
4 | > $auths = preg_split('/[\s,]+/',$r['authors']); |
---|
5 | > if (count($auths)) { |
---|
6 | > foreach ($auths as $auth) { |
---|
7 | > if (is_string($auth)) { |
---|
8 | > $author_ID = $wpdb->get_var("SELECT ID from $wpdb->users WHERE user_login = '$auth'"); |
---|
9 | > if (! $author_ID) next; |
---|
10 | > $auth = $author_ID; |
---|
11 | > } |
---|
12 | > if ('' == $authors) { |
---|
13 | > $authors .= ' post_author = ' intval($auth) . ' '; |
---|
14 | > } else { |
---|
15 | > $authors .= ' OR post_author = ' intval($auth) . ' '; |
---|
16 | > } |
---|
17 | > } |
---|
18 | > $authors = " AND ($authors) "; |
---|
19 | > } |
---|
20 | > } |
---|
21 | > |
---|
22 | 294c314 |
---|
23 | < "$exclusions " . |
---|
24 | --- |
---|
25 | > "$exclusions $authors " . |
---|
26 | 315a336 |
---|
27 | > if ( !isset($r['authors']) ) $r['authors'] = ''; |
---|