Skip to content

Commit

Permalink
fix: possible issues when list of allowed domains is not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed May 29, 2019
1 parent 1feb835 commit 2ee9997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/app_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ protected static function size_to_crop() {
* Returns the array of image sizes since `get_intermediate_image_sizes` and image metadata doesn't include the
* custom image sizes in a reliable way.
*
* @return array
* @global $wp_additional_image_sizes
*
* @return array
*/
protected static function image_sizes() {

Expand Down Expand Up @@ -293,7 +293,7 @@ public function set_properties() {
*/
protected function extract_domain_from_urls( $urls = array() ) {
if ( ! is_array( $urls ) ) {
return $urls;
return [];
}

$urls = array_map(
Expand Down

0 comments on commit 2ee9997

Please sign in to comment.