mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55606 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -349,7 +349,7 @@ switch ( $action ) {
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$languages = get_available_languages();
|
||||
$languages = get_available_languages();
|
||||
$can_install_translations = current_user_can( 'install_languages' ) && wp_can_install_language_pack();
|
||||
?>
|
||||
<?php if ( $languages || $can_install_translations ) : ?>
|
||||
@@ -370,12 +370,12 @@ switch ( $action ) {
|
||||
|
||||
wp_dropdown_languages(
|
||||
array(
|
||||
'name' => 'locale',
|
||||
'id' => 'locale',
|
||||
'selected' => $user_locale,
|
||||
'languages' => $languages,
|
||||
'name' => 'locale',
|
||||
'id' => 'locale',
|
||||
'selected' => $user_locale,
|
||||
'languages' => $languages,
|
||||
'show_available_translations' => $can_install_translations,
|
||||
'show_option_site_default' => true,
|
||||
'show_option_site_default' => true,
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user