| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 8 | 12 | add_action( 'woocommerce_init', 'jetpack_woocommerce_integration' ); |
| 9 | 13 | |
| 10 | 14 | /** |
| 11 | 15 | * Loads JP+WC integration. |
| @@ -88,9 +92,9 @@ | ||
| 88 | 92 | |
| 89 | 93 | if ( is_cart() || is_checkout() || is_account_page() ) { |
| 90 | 94 | remove_filter( 'the_content', 'sharing_display', 19 ); |
| 91 | 95 | if ( class_exists( 'Jetpack_Likes' ) ) { |
| 92 | - remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); | |
| 96 | + remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30 ); | |
| 93 | 97 | } |
| 94 | 98 | } |
| 95 | 99 | } |
| 96 | 100 | add_action( 'loop_start', 'jetpack_woocommerce_remove_share' ); |