Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r30703 r31090  
    136136        $post_type_query_vars = array();
    137137
    138         if ( is_array($extra_query_vars) )
     138        if ( is_array( $extra_query_vars ) ) {
    139139            $this->extra_query_vars = & $extra_query_vars;
    140         else if (! empty($extra_query_vars))
    141             parse_str($extra_query_vars, $this->extra_query_vars);
    142 
     140        } elseif ( ! empty( $extra_query_vars ) ) {
     141            parse_str( $extra_query_vars, $this->extra_query_vars );
     142        }
    143143        // Process PATH_INFO, REQUEST_URI, and 404 for permalinks.
    144144
     
    358358                $exit_required = true;
    359359            }
    360         } else if ( empty($this->query_vars['feed']) ) {
     360        } elseif ( empty( $this->query_vars['feed'] ) ) {
    361361            $headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset');
    362362        } else {
Note: See TracChangeset for help on using the changeset viewer.