af3dcf8b by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 34c42243
...@@ -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(
......