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:
commit
7db8940d2d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue