Fixed code for selecting multiple authors via query params
git-svn-id: https://develop.svn.wordpress.org/trunk@403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8355b75335
commit
e2674bd615
@ -143,10 +143,11 @@ if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) {
|
||||
$whichcat .= ')';
|
||||
}
|
||||
// author stuff
|
||||
if ((empty($author)) || ($author == 'all') || ($cat == '0')) {
|
||||
if ((empty($author)) || ($author == 'all') || ($author == '0')) {
|
||||
$whichauthor='';
|
||||
} elseif (intval($author)) {
|
||||
$author = intval($author);
|
||||
} else {
|
||||
$author = ''.urldecode($author).'';
|
||||
$author = addslashes_gpc($author);
|
||||
if (stristr($author, '-')) {
|
||||
$eq = '!=';
|
||||
$andor = 'AND';
|
||||
|
Loading…
Reference in New Issue
Block a user