Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (10 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/class-wp-upgrader.php

    r30860 r31090  
    432432            if ( is_wp_error($removed) ) {
    433433                return $removed;
    434             } else if ( ! $removed ) {
     434            } elseif ( ! $removed ) {
    435435                return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']);
    436436            }
     
    638638            $wp_filesystem->delete($file);
    639639            $wp_filesystem->put_contents($file, $maintenance_string, FS_CHMOD_FILE);
    640         } else if ( !$enable && $wp_filesystem->exists($file) ) {
     640        } elseif ( ! $enable && $wp_filesystem->exists( $file ) ) {
    641641            $this->skin->feedback('maintenance_end');
    642642            $wp_filesystem->delete($file);
Note: See TracChangeset for help on using the changeset viewer.