Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.
See #47632. Built from https://develop.svn.wordpress.org/trunk@45590 git-svn-id: http://core.svn.wordpress.org/trunk@45401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -359,8 +359,11 @@ abstract class WP_Image_Editor {
|
||||
$name = wp_basename( $this->file, ".$ext" );
|
||||
$new_ext = strtolower( $extension ? $extension : $ext );
|
||||
|
||||
if ( ! is_null( $dest_path ) && $_dest_path = realpath( $dest_path ) ) {
|
||||
$dir = $_dest_path;
|
||||
if ( ! is_null( $dest_path ) ) {
|
||||
$_dest_path = realpath( $dest_path );
|
||||
if ( $_dest_path ) {
|
||||
$dir = $_dest_path;
|
||||
}
|
||||
}
|
||||
|
||||
return trailingslashit( $dir ) . "{$name}-{$suffix}.{$new_ext}";
|
||||
@@ -392,7 +395,8 @@ abstract class WP_Image_Editor {
|
||||
* @return bool
|
||||
*/
|
||||
protected function make_image( $filename, $function, $arguments ) {
|
||||
if ( $stream = wp_is_stream( $filename ) ) {
|
||||
$stream = wp_is_stream( $filename );
|
||||
if ( $stream ) {
|
||||
ob_start();
|
||||
} else {
|
||||
// The directory containing the original file may no longer exist when using a replication plugin.
|
||||
|
||||
Reference in New Issue
Block a user