From f69c20859ef2811f856fed587569113cf8ac3efb Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 5 Jul 2019 03:14:56 +0000 Subject: [PATCH] Coding Standards: Fix all `WordPress.CodeAnalysis.AssignmentInCondition` issues. `WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition` can be ignored, as this is allowed in Core. See #47632. Built from https://develop.svn.wordpress.org/trunk@45601 git-svn-id: http://core.svn.wordpress.org/trunk@45412 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/revision.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/revision.php b/wp-includes/revision.php index c40510bc52..fd66c73ded 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -156,7 +156,7 @@ function wp_save_post_revision( $post_id ) { * @param WP_Post $last_revision The last revision post object. * @param WP_Post $post The post object. */ - if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', $check_for_changes = true, $last_revision, $post ) ) { + if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', true, $last_revision, $post ) ) { $post_has_changed = false; foreach ( array_keys( _wp_post_revision_fields( $post ) ) as $field ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 22ba423ed3..911234f902 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45600'; +$wp_version = '5.3-alpha-45601'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.