src/wp-includes/class-wp-image-editor-gd.php 1 location
|
@@ 96-97 (lines=2) @@
|
93 |
|
if ( $this->image ) |
94 |
|
return true; |
95 |
|
|
96 |
|
if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) |
97 |
|
return new WP_Error( 'error_loading_image', __('File doesn’t exist?'), $this->file ); |
98 |
|
|
99 |
|
/** |
100 |
|
* Filter the memory limit allocated for image manipulation. |
src/wp-includes/class-wp-image-editor-imagick.php 1 location
|
@@ 137-138 (lines=2) @@
|
134 |
|
if ( $this->image instanceof Imagick ) |
135 |
|
return true; |
136 |
|
|
137 |
|
if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) |
138 |
|
return new WP_Error( 'error_loading_image', __('File doesn’t exist?'), $this->file ); |
139 |
|
|
140 |
|
/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */ |
141 |
|
// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits |