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-template.php

    r30983 r31090  
    130130            $protected_title_format = apply_filters( 'protected_title_format', __( 'Protected: %s' ), $post );
    131131            $title = sprintf( $protected_title_format, $title );
    132         } else if ( isset( $post->post_status ) && 'private' == $post->post_status ) {
     132        } elseif ( isset( $post->post_status ) && 'private' == $post->post_status ) {
    133133
    134134            /**
     
    567567                $post_type = reset( $post_type );
    568568            $classes[] = 'post-type-archive-' . sanitize_html_class( $post_type );
    569         } else if ( is_author() ) {
     569        } elseif ( is_author() ) {
    570570            $author = $wp_query->get_queried_object();
    571571            $classes[] = 'author';
Note: See TracChangeset for help on using the changeset viewer.