Version Description
- January 23rd, 2016 =
- Replaced the use of
the_content
filter with the filter's associated functions (e.g.wptexturize
,wpautop
)
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Custom Product Tabs for WooCommerce |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.3
readme.txt
CHANGED
@@ -3,10 +3,10 @@ Contributors: yikesinc, eherman24, liljimmi, yikesitskevin
|
|
3 |
Donate link: http://yikesinc.com
|
4 |
Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs, product, woo, commerce
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.7
|
7 |
Requires WooCommerce at least: 2.0
|
8 |
Tested WooCommerce up to: 2.6.9
|
9 |
-
Stable tag: 1.5.
|
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.2 - December 23rd, 2016 =
|
78 |
* The editor should only default to the 'Visual' tab for our Custom Product Tabs (no other editors)
|
79 |
* Added all of the default WordPress settings to the editor
|
3 |
Donate link: http://yikesinc.com
|
4 |
Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs, product, woo, commerce
|
5 |
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 |
|
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 |
+
|
80 |
= 1.5.2 - December 23rd, 2016 =
|
81 |
* The editor should only default to the 'Visual' tab for our Custom Product Tabs (no other editors)
|
82 |
* Added all of the default WordPress settings to the editor
|
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.
|
9 |
* Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
|
10 |
* Domain Path: languages/
|
11 |
*
|
@@ -62,7 +62,7 @@
|
|
62 |
private $tab_data = false;
|
63 |
|
64 |
/** plugin version number */
|
65 |
-
const VERSION = '1.5.
|
66 |
|
67 |
/** plugin text domain */
|
68 |
const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
|
@@ -286,8 +286,7 @@
|
|
286 |
'title' => $tab['title'],
|
287 |
'priority' => $i++,
|
288 |
'callback' => array( $this, 'custom_product_tabs_panel_content' ),
|
289 |
-
'content' => $tab['content']
|
290 |
-
'class' => 'custom-css-class'
|
291 |
);
|
292 |
}
|
293 |
if ( isset( $tabs['reviews'] ) ) {
|
@@ -315,9 +314,16 @@
|
|
315 |
**/
|
316 |
public function custom_product_tabs_panel_content( $key, $tab ) {
|
317 |
|
318 |
-
//
|
319 |
-
|
320 |
-
$content =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
|
322 |
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 );
|
323 |
echo apply_filters( 'yikes_woocommerce_custom_repeatable_product_tabs_content', $content, $tab );
|
@@ -431,7 +437,6 @@
|
|
431 |
$tab_id = preg_replace( "/\s+/", '-', $tab_id );
|
432 |
// replace all multiple spaces with single dashes
|
433 |
$tab_id = $tab_id;
|
434 |
-
// prepend with 'tab-' string
|
435 |
}
|
436 |
}
|
437 |
$current_tab_id_array[] = $tab_id;
|
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 |
*
|
62 |
private $tab_data = false;
|
63 |
|
64 |
/** plugin version number */
|
65 |
+
const VERSION = '1.5.3';
|
66 |
|
67 |
/** plugin text domain */
|
68 |
const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
|
286 |
'title' => $tab['title'],
|
287 |
'priority' => $i++,
|
288 |
'callback' => array( $this, 'custom_product_tabs_panel_content' ),
|
289 |
+
'content' => $tab['content']
|
|
|
290 |
);
|
291 |
}
|
292 |
if ( isset( $tabs['reviews'] ) ) {
|
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 );
|
437 |
$tab_id = preg_replace( "/\s+/", '-', $tab_id );
|
438 |
// replace all multiple spaces with single dashes
|
439 |
$tab_id = $tab_id;
|
|
|
440 |
}
|
441 |
}
|
442 |
$current_tab_id_array[] = $tab_id;
|