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

    r31079 r31090  
    146146                        continue;
    147147
    148                     if ( @is_dir( $dir . DIRECTORY_SEPARATOR . $file ) )
     148                    if ( @is_dir( $dir . DIRECTORY_SEPARATOR . $file ) ) {
    149149                        $stack[] = $dir . DIRECTORY_SEPARATOR . $file;
    150                     else if ( @is_file( $dir . DIRECTORY_SEPARATOR . $file ) )
     150                    } elseif ( @is_file( $dir . DIRECTORY_SEPARATOR . $file ) ) {
    151151                        @unlink( $dir . DIRECTORY_SEPARATOR . $file );
     152                    }
    152153                }
    153154                @closedir( $dh );
Note: See TracChangeset for help on using the changeset viewer.