The keyword elseif should be used instead of else if so that all control keywords look like single words.
This was a mess, is now standardized across the codebase, except for a few 3rd-party libs. See #30799. Built from https://develop.svn.wordpress.org/trunk@31090 git-svn-id: http://core.svn.wordpress.org/trunk@31071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -135,11 +135,11 @@ class WP {
|
||||
$this->query_vars = array();
|
||||
$post_type_query_vars = array();
|
||||
|
||||
if ( is_array($extra_query_vars) )
|
||||
if ( is_array( $extra_query_vars ) ) {
|
||||
$this->extra_query_vars = & $extra_query_vars;
|
||||
else if (! empty($extra_query_vars))
|
||||
parse_str($extra_query_vars, $this->extra_query_vars);
|
||||
|
||||
} elseif ( ! empty( $extra_query_vars ) ) {
|
||||
parse_str( $extra_query_vars, $this->extra_query_vars );
|
||||
}
|
||||
// Process PATH_INFO, REQUEST_URI, and 404 for permalinks.
|
||||
|
||||
// Fetch the rewrite rules.
|
||||
@@ -357,7 +357,7 @@ class WP {
|
||||
} elseif ( in_array( $status, array( 403, 500, 502, 503 ) ) ) {
|
||||
$exit_required = true;
|
||||
}
|
||||
} else if ( empty($this->query_vars['feed']) ) {
|
||||
} elseif ( empty( $this->query_vars['feed'] ) ) {
|
||||
$headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset');
|
||||
} else {
|
||||
// We're showing a feed, so WP is indeed the only thing that last changed
|
||||
|
||||
Reference in New Issue
Block a user