WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (17 months ago)
Author:
pento
Message:

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

See #47632.

File:
1 edited

Legend:

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

    r45064 r45590  
    700700
    701701    // Fetch the meta and go on if it's found.
    702     if ( $meta = get_metadata_by_mid( $meta_type, $meta_id ) ) {
     702    $meta = get_metadata_by_mid( $meta_type, $meta_id );
     703    if ( $meta ) {
    703704        $original_key = $meta->meta_key;
    704705        $object_id    = $meta->{$column};
     
    812813
    813814    // Fetch the meta and go on if it's found.
    814     if ( $meta = get_metadata_by_mid( $meta_type, $meta_id ) ) {
     815    $meta = get_metadata_by_mid( $meta_type, $meta_id );
     816    if ( $meta ) {
    815817        $object_id = (int) $meta->{$column};
    816818
Note: See TracChangeset for help on using the changeset viewer.