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-admin/includes/meta-boxes.php

    r31077 r31090  
    167167    if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
    168168        $stamp = __('Scheduled for: <b>%1$s</b>');
    169     } else if ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
     169    } elseif ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
    170170        $stamp = __('Published on: <b>%1$s</b>');
    171     } else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
     171    } elseif ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
    172172        $stamp = __('Publish <b>immediately</b>');
    173     } else if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
     173    } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
    174174        $stamp = __('Schedule for: <b>%1$s</b>');
    175175    } else { // draft, 1 or more saves, date specified
Note: See TracChangeset for help on using the changeset viewer.