Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (12 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/rewrite.php

    r31078 r31090  
    13771377
    13781378                        //only on pages with comments add ../comment-page-xx/
    1379                         if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask )
     1379                        if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask ) {
    13801380                                $rewrite = array_merge($rewrite, array($commentmatch => $commentquery));
    1381                         else if ( EP_ROOT & $ep_mask && get_option('page_on_front') )
     1381                        } elseif ( EP_ROOT & $ep_mask && get_option('page_on_front') ) {
    13821382                                $rewrite = array_merge($rewrite, array($rootcommentmatch => $rootcommentquery));
    1383 
     1383                        }
    13841384                        //do endpoints
    13851385                        if ( $endpoints ) {
Note: See TracChangeset for help on using the changeset viewer.