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
@ -1338,9 +1338,9 @@ function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = '
|
||||
if ( $slug !== $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];
|
||||
} else if ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
|
||||
} elseif ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
|
||||
$type = $matches[1];
|
||||
$slug_remaining = $matches[2];
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user