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

    r30982 r31090  
    168168                $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.' ) . '</strong></p>',
    169169                    $theme_name, esc_url( $details_url ), esc_attr( $theme['Name'] ), $update['new_version'] );
    170             } else if ( empty( $update['package'] ) ) {
     170            } elseif ( empty( $update['package'] ) ) {
    171171                $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>',
    172172                    $theme_name, esc_url( $details_url ), esc_attr( $theme['Name'] ), $update['new_version'] );
Note: See TracChangeset for help on using the changeset viewer.