WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (2 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

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

    r43571 r45583  
    2121 */
    2222function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
    23     if ( ! $post = get_post( $post ) ) {
     23    $post = get_post( $post );
     24    if ( ! $post ) {
    2425        return false;
    2526    }
    2627
    2728    if ( $compare_from ) {
    28         if ( ! $compare_from = get_post( $compare_from ) ) {
     29        $compare_from = get_post( $compare_from );
     30        if ( ! $compare_from ) {
    2931            return false;
    3032        }
     
    3436    }
    3537
    36     if ( ! $compare_to = get_post( $compare_to ) ) {
     38    $compare_to = get_post( $compare_to );
     39    if ( ! $compare_to ) {
    3740        return false;
    3841    }
Note: See TracChangeset for help on using the changeset viewer.