qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
2 additions
and
4 deletions
| ... | @@ -136,11 +136,9 @@ class RegenerateThumbnails_Regenerator { | ... | @@ -136,11 +136,9 @@ class RegenerateThumbnails_Regenerator { |
| 136 | return $this->fullsizepath; | 136 | return $this->fullsizepath; |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | if ( function_exists( 'wp_get_original_image_path' ) ) { | 139 | |
| 140 | $this->fullsizepath = wp_get_original_image_path( $this->attachment->ID ); | ||
| 141 | } else { | ||
| 142 | $this->fullsizepath = get_attached_file( $this->attachment->ID ); | 140 | $this->fullsizepath = get_attached_file( $this->attachment->ID ); |
| 143 | } | 141 | |
| 144 | 142 | ||
| 145 | if ( false === $this->fullsizepath || ! file_exists( $this->fullsizepath ) ) { | 143 | if ( false === $this->fullsizepath || ! file_exists( $this->fullsizepath ) ) { |
| 146 | $error = new WP_Error( | 144 | $error = new WP_Error( | ... | ... |
-
Please register or sign in to post a comment