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
This commit is contained in:
Gary Pendergast 2019-07-05 03:14:56 +00:00
parent d378f0a8f4
commit f69c20859e
2 changed files with 2 additions and 2 deletions

View File

@ -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 ) {

View File

@ -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.