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

    r31058 r31090  
    21852185            $value = esc_attr($value);
    21862186        }
    2187     } else if ( 'db' == $context ) {
     2187    } elseif ( 'db' == $context ) {
    21882188        if ( $prefixed ) {
    21892189
     
    22532253    if ( 'attribute' == $context )
    22542254        $value = esc_attr($value);
    2255     else if ( 'js' == $context )
     2255    elseif ( 'js' == $context )
    22562256        $value = esc_js($value);
    22572257
     
    39083908            $post_categories = array();
    39093909        }
    3910     } else if ( 1 == count($post_categories) && '' == reset($post_categories) ) {
     3910    } elseif ( 1 == count( $post_categories ) && '' == reset( $post_categories ) ) {
    39113911        return true;
    39123912    }
Note: See TracChangeset for help on using the changeset viewer.