mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01: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. Built from https://develop.svn.wordpress.org/trunk@55606 git-svn-id: http://core.svn.wordpress.org/trunk@55118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
08e9393f23
commit
f940bc822d
@ -349,7 +349,7 @@ switch ( $action ) {
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$languages = get_available_languages();
|
$languages = get_available_languages();
|
||||||
$can_install_translations = current_user_can( 'install_languages' ) && wp_can_install_language_pack();
|
$can_install_translations = current_user_can( 'install_languages' ) && wp_can_install_language_pack();
|
||||||
?>
|
?>
|
||||||
<?php if ( $languages || $can_install_translations ) : ?>
|
<?php if ( $languages || $can_install_translations ) : ?>
|
||||||
@ -370,12 +370,12 @@ switch ( $action ) {
|
|||||||
|
|
||||||
wp_dropdown_languages(
|
wp_dropdown_languages(
|
||||||
array(
|
array(
|
||||||
'name' => 'locale',
|
'name' => 'locale',
|
||||||
'id' => 'locale',
|
'id' => 'locale',
|
||||||
'selected' => $user_locale,
|
'selected' => $user_locale,
|
||||||
'languages' => $languages,
|
'languages' => $languages,
|
||||||
'show_available_translations' => $can_install_translations,
|
'show_available_translations' => $can_install_translations,
|
||||||
'show_option_site_default' => true,
|
'show_option_site_default' => true,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1338,9 +1338,9 @@ function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = '
|
|||||||
if ( $slug !== $type ) {
|
if ( $slug !== $type ) {
|
||||||
$template_hierarchy[] = $type;
|
$template_hierarchy[] = $type;
|
||||||
}
|
}
|
||||||
} else if ( preg_match( '/^(author|category|archive|tag|page)-.+$/', $slug, $matches ) ) {
|
} elseif ( preg_match( '/^(author|category|archive|tag|page)-.+$/', $slug, $matches ) ) {
|
||||||
$template_hierarchy[] = $matches[1];
|
$template_hierarchy[] = $matches[1];
|
||||||
} else if ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
|
} elseif ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
|
||||||
$type = $matches[1];
|
$type = $matches[1];
|
||||||
$slug_remaining = $matches[2];
|
$slug_remaining = $matches[2];
|
||||||
|
|
||||||
|
@ -272,7 +272,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
|
|||||||
return $changes;
|
return $changes;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = wp_update_post( wp_slash( (array) $changes ), true, false );
|
$result = wp_update_post( wp_slash( (array) $changes ), true, false );
|
||||||
if ( is_wp_error( $result ) ) {
|
if ( is_wp_error( $result ) ) {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
@ -1108,9 +1108,9 @@ function wp_default_scripts( $scripts ) {
|
|||||||
$scripts->add( 'mediaelement-vimeo', '/wp-includes/js/mediaelement/renderers/vimeo.min.js', array( 'mediaelement' ), '4.2.17', 1 );
|
$scripts->add( 'mediaelement-vimeo', '/wp-includes/js/mediaelement/renderers/vimeo.min.js', array( 'mediaelement' ), '4.2.17', 1 );
|
||||||
$scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement$suffix.js", array( 'mediaelement' ), false, 1 );
|
$scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement$suffix.js", array( 'mediaelement' ), false, 1 );
|
||||||
$mejs_settings = array(
|
$mejs_settings = array(
|
||||||
'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
|
'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
|
||||||
'classPrefix' => 'mejs-',
|
'classPrefix' => 'mejs-',
|
||||||
'stretching' => 'responsive',
|
'stretching' => 'responsive',
|
||||||
/** This filter is documented in wp-includes/media.php */
|
/** This filter is documented in wp-includes/media.php */
|
||||||
'audioShortcodeLibrary' => apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ),
|
'audioShortcodeLibrary' => apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ),
|
||||||
/** This filter is documented in wp-includes/media.php */
|
/** This filter is documented in wp-includes/media.php */
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55601';
|
$wp_version = '6.3-alpha-55606';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user