s/#/ \/\/ / - Remove #comment with // comment in WP_Query

git-svn-id: http://svn.automattic.com/wordpress/trunk@14402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-05-03 20:20:46 +00:00
parent e840bb1167
commit 8213b95a67

View File

@ -2070,9 +2070,9 @@ class WP_Query {
if ( strpos($q['author_name'], '/') !== false ) {
$q['author_name'] = explode('/', $q['author_name']);
if ( $q['author_name'][ count($q['author_name'])-1 ] ) {
$q['author_name'] = $q['author_name'][count($q['author_name'])-1]; #no trailing slash
$q['author_name'] = $q['author_name'][count($q['author_name'])-1]; // no trailing slash
} else {
$q['author_name'] = $q['author_name'][count($q['author_name'])-2]; #there was a trailling slash
$q['author_name'] = $q['author_name'][count($q['author_name'])-2]; // there was a trailling slash
}
}
$q['author_name'] = sanitize_title($q['author_name']);