af3dcf8b by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 34c42243
......@@ -136,11 +136,9 @@ class RegenerateThumbnails_Regenerator {
return $this->fullsizepath;
}
if ( function_exists( 'wp_get_original_image_path' ) ) {
$this->fullsizepath = wp_get_original_image_path( $this->attachment->ID );
} else {
$this->fullsizepath = get_attached_file( $this->attachment->ID );
}
if ( false === $this->fullsizepath || ! file_exists( $this->fullsizepath ) ) {
$error = new WP_Error(
......