Skip to content

Commit

Permalink
Use array_replace instead of array_merge. (#6126)
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage authored and samhotchkiss committed Jan 20, 2017
1 parent 7fce9a5 commit 1bc9bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.photon.php
Expand Up @@ -720,7 +720,7 @@ public function filter_srcset_array( $sources, $size_array, $image_src, $image_m
);
} // foreach ( $multipliers as $multiplier )
if ( is_array( $newsources ) ) {
$sources = array_merge( $sources, $newsources );
$sources = array_replace( $sources, $newsources );
}
} // if ( isset( $image_meta['width'] ) && isset( $image_meta['file'] ) )

Expand Down

0 comments on commit 1bc9bba

Please sign in to comment.