Make WordPress Core


Ignore:
Timestamp:
07/05/2019 03:13:31 AM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix all WordPress.CodeAnalysis.AssignmentInCondition issues.

WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition can be ignored, as this is allowed in Core.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/revision.php

    r45590 r45601  
    157157         * @param WP_Post $post              The post object.
    158158         */
    159         if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', $check_for_changes = true, $last_revision, $post ) ) {
     159        if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', true, $last_revision, $post ) ) {
    160160            $post_has_changed = false;
    161161
Note: See TracChangeset for help on using the changeset viewer.