Merge pull request #20982 from shabnam611/fix/20943

Fix for issue 20943: Removed unnecessary php tag [point 2] and removed a return false stat…
This commit is contained in:
Gerhard Potgieter 2018-08-08 10:51:31 +02:00 committed by GitHub
commit 7db8940d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -5,7 +5,7 @@
* All functionality pertaining to regenerating product images in realtime.
*
* @package WooCommerce/Classes
* @version 3.3.0
* @version 3.5.0
* @since 3.3.0
*/
@ -87,10 +87,7 @@ class WC_Regenerate_Images {
$size_data = wc_get_image_size( $size );
return image_get_intermediate_size( $attachment_id, array( absint( $size_data['width'] ), absint( $size_data['height'] ) ) );
}
return false;
}
return $data;
}

View File

@ -15,15 +15,13 @@
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
* @version 3.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<?php do_action( 'woocommerce_share' ); // Sharing plugins can hook into here
do_action( 'woocommerce_share' ); // Sharing plugins can hook into here
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */