Skip to content

Commit

Permalink
Merge pull request #6068 from dd32/fix/tonesque-warnings
Browse files Browse the repository at this point in the history
Never return WP_Error from Tonesque::imagecreatefromurl()
  • Loading branch information
eliorivero authored Jan 31, 2017
2 parents 1ec78a4 + 07b93ac commit dedbd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _inc/lib/tonesque.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function imagecreatefromurl( $image_url ) {
if ( empty( $data ) ) {
$response = wp_remote_get( $image_url );
if ( is_wp_error( $response ) ) {
return $response;
return false;
}
$data = wp_remote_retrieve_body( $response );
}
Expand Down

0 comments on commit dedbd07

Please sign in to comment.