Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (7 years 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/class-wp-image-editor.php

    r42746 r45590  
    360360                $new_ext = strtolower( $extension ? $extension : $ext );
    361361
    362                 if ( ! is_null( $dest_path ) && $_dest_path = realpath( $dest_path ) ) {
    363                         $dir = $_dest_path;
     362                if ( ! is_null( $dest_path ) ) {
     363                        $_dest_path = realpath( $dest_path );
     364                        if ( $_dest_path ) {
     365                                $dir = $_dest_path;
     366                        }
    364367                }
    365368
    … …  
    393396         */
    394397        protected function make_image( $filename, $function, $arguments ) {
    395                 if ( $stream = wp_is_stream( $filename ) ) {
     398                $stream = wp_is_stream( $filename );
     399                if ( $stream ) {
    396400                        ob_start();
    397401                } else {
Note: See TracChangeset for help on using the changeset viewer.