From e2674bd615b2a0750b4da8a28b8e953fb254f7b1 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Wed, 1 Oct 2003 20:58:44 +0000 Subject: [PATCH] Fixed code for selecting multiple authors via query params git-svn-id: https://develop.svn.wordpress.org/trunk@403 602fd350-edb4-49c9-b593-d223f7449a82 --- blog.header.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/blog.header.php b/blog.header.php index da52a33212..87704b9970 100644 --- a/blog.header.php +++ b/blog.header.php @@ -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';