From 90febaaa10c8c77c247d9a2aa308c4d89f10b5f7 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Fri, 10 Apr 2015 08:38:28 -0400 Subject: [PATCH] remove unnecessary external warning --- ...s-displayfeaturedimagegenesis-settings.php | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/includes/class-displayfeaturedimagegenesis-settings.php b/includes/class-displayfeaturedimagegenesis-settings.php index 6f7fd96..e55517d 100644 --- a/includes/class-displayfeaturedimagegenesis-settings.php +++ b/includes/class-displayfeaturedimagegenesis-settings.php @@ -445,18 +445,7 @@ class Display_Featured_Image_Genesis_Settings { 'error' ); } - // if the image is external to the WP site, we cannot use it. - elseif ( ! $source ) { - $message = __( 'Sorry, your image must be uploaded directly to your WordPress site.', 'display-featured-image-genesis' ) . $reset; - $new_value = $this->displaysetting['default']; - add_settings_error( - $this->displaysetting['default'], - esc_attr( 'external' ), - $message, - 'error' - ); - } // if file is an image, but is too small, throw it back elseif ( $width <= $large ) { $message = __( 'Sorry, your image is too small.', 'display-featured-image-genesis' ) . $reset; @@ -507,18 +496,7 @@ class Display_Featured_Image_Genesis_Settings { 'error' ); } - // if the image is external to the WP site, we cannot use it. - elseif ( ! $source ) { - $message = __( 'Sorry, your image must be uploaded directly to your WordPress site.', 'display-featured-image-genesis' ); - $new_value = false; - add_settings_error( - $this->displaysetting['default'], - esc_attr( 'external' ), - $message, - 'error' - ); - } // if file is an image, but is too small, throw it back elseif ( $width <= $medium ) { $message = __( 'Sorry, your image is too small.', 'display-featured-image-genesis' );