mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2137,7 +2137,7 @@ class WP_Query {
|
||||
if ( intval($q['comments_popup']) )
|
||||
$q['p'] = absint($q['comments_popup']);
|
||||
|
||||
// If an attachment is requested by number, let it supercede any post number.
|
||||
// If an attachment is requested by number, let it supersede any post number.
|
||||
if ( $q['attachment_id'] )
|
||||
$q['p'] = absint($q['attachment_id']);
|
||||
|
||||
@@ -2288,7 +2288,7 @@ class WP_Query {
|
||||
if ( $q['author_name'][ count($q['author_name'])-1 ] ) {
|
||||
$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 trailing slash
|
||||
}
|
||||
}
|
||||
$q['author_name'] = sanitize_title_for_query( $q['author_name'] );
|
||||
|
||||
Reference in New Issue
Block a user