From dc981d9853d4e1eaba60c2acc94c580c7f3a1697 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 2 Jun 2016 14:56:13 +0100 Subject: [PATCH] Tweak conditonal --- includes/class-wc-embed.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-wc-embed.php b/includes/class-wc-embed.php index eec8e9bf06d..fdd5f19ba1f 100644 --- a/includes/class-wc-embed.php +++ b/includes/class-wc-embed.php @@ -40,15 +40,15 @@ class WC_Embed { // Add some basic styles. add_action( 'embed_head', array( __CLASS__, 'print_embed_styles' ) ); } - + /** * Remove comments button on product embeds. - * + * * @since 2.5.6 */ public static function remove_comments_button() { - if (is_product()) { - remove_action('embed_content_meta', 'print_embed_comments_button'); + if ( self::is_embedded_product() ) { + remove_action( 'embed_content_meta', 'print_embed_comments_button' ); } }