From 653c410859fac4551729410095d57bd17b49cbb7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 29 Nov 2022 21:13:16 +0000 Subject: [PATCH] Coding Standards: Fix spacing for incrementors and decrementors in various files. Note: This will be enforced by WPCS 3.0.0. Props jrf. See #56791. Built from https://develop.svn.wordpress.org/trunk@54896 git-svn-id: http://core.svn.wordpress.org/trunk@54448 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- wp-includes/functions.php | 2 +- wp-includes/sitemaps/class-wp-sitemaps-provider.php | 2 +- wp-includes/version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 7de1a07431..6dc7cc931f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -626,7 +626,7 @@ function _list_meta_row( $entry, &$count ) { } $r = ''; - ++ $count; + ++$count; if ( is_serialized( $entry['meta_value'] ) ) { if ( is_serialized_string( $entry['meta_value'] ) ) { diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b2baae9a51..fd0de3377a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -262,7 +262,7 @@ function wp_date( $format, $timestamp = null, $timezone = null ) { $month = $wp_locale->get_month( $datetime->format( 'm' ) ); $weekday = $wp_locale->get_weekday( $datetime->format( 'w' ) ); - for ( $i = 0; $i < $format_length; $i ++ ) { + for ( $i = 0; $i < $format_length; $i++ ) { switch ( $format[ $i ] ) { case 'D': $new_format .= addcslashes( $wp_locale->get_weekday_abbrev( $weekday ), '\\A..Za..z' ); diff --git a/wp-includes/sitemaps/class-wp-sitemaps-provider.php b/wp-includes/sitemaps/class-wp-sitemaps-provider.php index 81464c1bdb..1ff4987eca 100644 --- a/wp-includes/sitemaps/class-wp-sitemaps-provider.php +++ b/wp-includes/sitemaps/class-wp-sitemaps-provider.php @@ -107,7 +107,7 @@ abstract class WP_Sitemaps_Provider { $sitemap_types = $this->get_sitemap_type_data(); foreach ( $sitemap_types as $type ) { - for ( $page = 1; $page <= $type['pages']; $page ++ ) { + for ( $page = 1; $page <= $type['pages']; $page++ ) { $sitemap_entry = array( 'loc' => $this->get_sitemap_url( $type['name'], $page ), ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 58170d5bb8..ca80dd13c9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54895'; +$wp_version = '6.2-alpha-54896'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.