Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (12 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-skins.php

    r30680 r31090  
    448448                }
    449449
    450                 if ( 'import' == $from )
     450                if ( 'import' == $from ) {
    451451                        $install_actions['importers_page'] = '<a href="' . admin_url('import.php') . '" title="' . esc_attr__('Return to Importers') . '" target="_parent">' . __('Return to Importers') . '</a>';
    452                 else if ( $this->type == 'web' )
     452                } elseif ( $this->type == 'web' ) {
    453453                        $install_actions['plugins_page'] = '<a href="' . self_admin_url('plugin-install.php') . '" title="' . esc_attr__('Return to Plugin Installer') . '" target="_parent">' . __('Return to Plugin Installer') . '</a>';
    454                 else
     454                } else {
    455455                        $install_actions['plugins_page'] = '<a href="' . self_admin_url('plugins.php') . '" title="' . esc_attr__('Return to Plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>';
     456                }
    456457
    457458                if ( ! $this->result || is_wp_error($this->result) ) {
    … …  
    732733         */
    733734        public function feedback( $data ) {
    734                 if ( is_wp_error( $data ) )
     735                if ( is_wp_error( $data ) ) {
    735736                        $string = $data->get_error_message();
    736                 else if ( is_array( $data ) )
    737                         return;
    738                 else
     737                } elseif ( is_array( $data ) ) {
     738                        return;
     739                } else {
    739740                        $string = $data;
    740 
     741                }
    741742                if ( ! empty( $this->upgrader->strings[ $string ] ) )
    742743                        $string = $this->upgrader->strings[ $string ];
Note: See TracChangeset for help on using the changeset viewer.