Make WordPress Core


Ignore:
Timestamp:
03/29/2023 07:11:26 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Apply various alignment corrections from composer format.

This fixes a few WPCS warnings along the lines of:

  • Array double arrow not aligned correctly
  • Equals sign not aligned with surrounding statements
  • Usage of ELSE IF is discouraged; use ELSEIF instead

Follow-up to [55099], [55192], [55194], [55271].

Props davidbaumwald, jrf, SergeyBiryukov.
Fixes #57994.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r55414 r55606  
    350350
    351351                    <?php
    352                     $languages = get_available_languages();
     352                    $languages                = get_available_languages();
    353353                    $can_install_translations = current_user_can( 'install_languages' ) && wp_can_install_language_pack();
    354354                    ?>
     
    371371                            wp_dropdown_languages(
    372372                                array(
    373                                     'name'                        => 'locale',
    374                                     'id'                          => 'locale',
    375                                     'selected'                    => $user_locale,
    376                                     'languages'                   => $languages,
     373                                    'name'      => 'locale',
     374                                    'id'        => 'locale',
     375                                    'selected'  => $user_locale,
     376                                    'languages' => $languages,
    377377                                    'show_available_translations' => $can_install_translations,
    378                                     'show_option_site_default'    => true,
     378                                    'show_option_site_default' => true,
    379379                                )
    380380                            );
Note: See TracChangeset for help on using the changeset viewer.