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

git-svn-id: https://develop.svn.wordpress.org/trunk@14402 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-05-03 20:20:46 +00:00
parent aa7c1d8a41
commit d28dcf1ef6
1 changed files with 2 additions and 2 deletions

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']);