Custom Product Tabs for WooCommerce - Version 1.5.4

Version Description

  • January 23rd, 2016 =
  • Re-did 1.5.3 changes - the_content filter is reapplied and the specific Site Builder plugin's filters are
Download this release

Release Info

Developer yikesitskevin
Plugin Icon 128x128 Custom Product Tabs for WooCommerce
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3 to 1.5.4

readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 3.8
6
  Tested up to: 4.7.1
7
  Requires WooCommerce at least: 2.0
8
  Tested WooCommerce up to: 2.6.9
9
- Stable tag: 1.5.3
10
  License: GPLv2 or later
11
 
12
  Add custom tabs with content to products in WooCommerce.
@@ -74,6 +74,9 @@ Yes! Since v1.4 we've added the necessary code to ensure the custom tab data is
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 1.5.3 - January 23rd, 2016 =
78
  * Replaced the use of `the_content` filter with the filter's associated functions (e.g. `wptexturize`, `wpautop`)
79
 
6
  Tested up to: 4.7.1
7
  Requires WooCommerce at least: 2.0
8
  Tested WooCommerce up to: 2.6.9
9
+ Stable tag: 1.5.4
10
  License: GPLv2 or later
11
 
12
  Add custom tabs with content to products in WooCommerce.
74
 
75
  == Changelog ==
76
 
77
+ = 1.5.4 - January 23rd, 2016 =
78
+ * Re-did 1.5.3 changes - `the_content` filter is reapplied and the specific Site Builder plugin's filters are
79
+
80
  = 1.5.3 - January 23rd, 2016 =
81
  * Replaced the use of `the_content` filter with the filter's associated functions (e.g. `wptexturize`, `wpautop`)
82
 
yikes-inc-easy-custom-woocommerce-product-tabs.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES, Inc
7
  * Author URI: http://www.yikesinc.com
8
- * Version: 1.5.3
9
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
10
  * Domain Path: languages/
11
  *
@@ -314,16 +314,13 @@
314
  **/
315
  public function custom_product_tabs_panel_content( $key, $tab ) {
316
 
317
- // We don't want to run our content through the_content filter directly because the current $product's the_content may overwrite it
318
- // So we need to use the same HTML-formatting functions the_content filter uses - (list of filters retrieved from /wp-includes/default-filters.php)
319
- $content = $tab['content'];
320
- $content = function_exists( 'capital_P_dangit' ) ? capital_P_dangit( $content ) : $content;
321
- $content = function_exists( 'wptexturize' ) ? wptexturize( $content ) : $content;
322
- $content = function_exists( 'convert_smilies' ) ? convert_smilies( $content ) : $content;
323
- $content = function_exists( 'wpautop' ) ? wpautop( $content ) : $content;
324
- $content = function_exists( 'shortcode_unautop' ) ? shortcode_unautop( $content ) : $content;
325
- $content = function_exists( 'prepend_attachment' ) ? prepend_attachment( $content ) : $content;
326
- $content = function_exists( 'wp_make_content_images_responsive' ) ? wp_make_content_images_responsive( $content ) : $content;
327
 
328
  echo apply_filters( 'yikes_woocommerce_custom_repeatable_product_tabs_heading', '<h2 class="yikes-custom-woo-tab-title yikes-custom-woo-tab-title-'.sanitize_title($tab['title']).'">' . $tab['title'] . '</h2>', $tab );
329
  echo apply_filters( 'yikes_woocommerce_custom_repeatable_product_tabs_content', $content, $tab );
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES, Inc
7
  * Author URI: http://www.yikesinc.com
8
+ * Version: 1.5.4
9
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
10
  * Domain Path: languages/
11
  *
314
  **/
315
  public function custom_product_tabs_panel_content( $key, $tab ) {
316
 
317
+ // Hardcoding Site Origin Page Builder conflict fix - remove their the_content filter
318
+ remove_filter( 'the_content', 'siteorigin_panels_filter_content' );
319
+
320
+ $content = apply_filters( 'the_content', $tab['content'] );
321
+
322
+ // Hardcoding Site Origin Page Builder conflict fix - re-add their the_content filter
323
+ add_filter( 'the_content', 'siteorigin_panels_filter_content' );
 
 
 
324
 
325
  echo apply_filters( 'yikes_woocommerce_custom_repeatable_product_tabs_heading', '<h2 class="yikes-custom-woo-tab-title yikes-custom-woo-tab-title-'.sanitize_title($tab['title']).'">' . $tab['title'] . '</h2>', $tab );
326
  echo apply_filters( 'yikes_woocommerce_custom_repeatable_product_tabs_content', $content, $tab );