Fixed code for selecting multiple authors via query params
git-svn-id: http://svn.automattic.com/wordpress/trunk@403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8bc513d23
commit
e50c87cc4f
|
@ -143,10 +143,11 @@ if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) {
|
||||||
$whichcat .= ')';
|
$whichcat .= ')';
|
||||||
}
|
}
|
||||||
// author stuff
|
// author stuff
|
||||||
if ((empty($author)) || ($author == 'all') || ($cat == '0')) {
|
if ((empty($author)) || ($author == 'all') || ($author == '0')) {
|
||||||
$whichauthor='';
|
$whichauthor='';
|
||||||
} elseif (intval($author)) {
|
} else {
|
||||||
$author = intval($author);
|
$author = ''.urldecode($author).'';
|
||||||
|
$author = addslashes_gpc($author);
|
||||||
if (stristr($author, '-')) {
|
if (stristr($author, '-')) {
|
||||||
$eq = '!=';
|
$eq = '!=';
|
||||||
$andor = 'AND';
|
$andor = 'AND';
|
||||||
|
|
Loading…
Reference in New Issue