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/formatting.php

    r31079 r31090  
    15031503            }
    15041504            // if stacktop value = tag close value then pop
    1505             else if ( $tagstack[$stacksize - 1] == $tag ) { // found closing tag
     1505            elseif ( $tagstack[$stacksize - 1] == $tag ) { // found closing tag
    15061506                $tag = '</' . $tag . '>'; // Close Tag
    15071507                // Pop
     
    23382338        return gmdate('Y-m-d H:i:s', $timestamp);
    23392339
    2340     } else if ($timezone == 'user') {
     2340    } elseif ($timezone == 'user') {
    23412341        return preg_replace('#([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(Z|[\+|\-][0-9]{2,4}){0,1}#', '$1-$2-$3 $4:$5:$6', $date_string);
    23422342    }
Note: See TracChangeset for help on using the changeset viewer.