Version Description
( June 21st, 2019 ) = * New - Option to disable the functionality for WooCommerce products
Download this release
Release Info
| Developer | FancyThemes |
| Plugin | |
| Version | 4.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 4.3.0 to 4.3.1
- advanced-excerpt.php +2 -2
- class/advanced-excerpt.php +6 -0
- readme.txt +4 -1
advanced-excerpt.php
CHANGED
|
@@ -3,12 +3,12 @@
|
|
| 3 |
Plugin Name: Advanced Excerpt
|
| 4 |
Plugin URI: http://wordpress.org/plugins/advanced-excerpt/
|
| 5 |
Description: Control the appearance of WordPress post excerpts
|
| 6 |
-
Version: 4.3.
|
| 7 |
Author: WPKube
|
| 8 |
Author URI: https://wpkube.com
|
| 9 |
*/
|
| 10 |
|
| 11 |
-
$GLOBALS['advanced_excerpt_version'] = '4.3.
|
| 12 |
|
| 13 |
function advanced_excerpt_load_textdomain() {
|
| 14 |
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
| 3 |
Plugin Name: Advanced Excerpt
|
| 4 |
Plugin URI: http://wordpress.org/plugins/advanced-excerpt/
|
| 5 |
Description: Control the appearance of WordPress post excerpts
|
| 6 |
+
Version: 4.3.1
|
| 7 |
Author: WPKube
|
| 8 |
Author URI: https://wpkube.com
|
| 9 |
*/
|
| 10 |
|
| 11 |
+
$GLOBALS['advanced_excerpt_version'] = '4.3.1';
|
| 12 |
|
| 13 |
function advanced_excerpt_load_textdomain() {
|
| 14 |
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
class/advanced-excerpt.php
CHANGED
|
@@ -92,6 +92,11 @@ class Advanced_Excerpt {
|
|
| 92 |
$page_type_matches = array_intersect( $page_types, $skip_page_types );
|
| 93 |
if ( !empty( $page_types ) && !empty( $page_type_matches ) ) return;
|
| 94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
if ( 1 == $this->options['the_excerpt'] ) {
|
| 96 |
remove_all_filters( 'get_the_excerpt' );
|
| 97 |
remove_all_filters( 'the_excerpt' );
|
|
@@ -433,6 +438,7 @@ class Advanced_Excerpt {
|
|
| 433 |
'author' => __( 'Author Archive', 'advanced-excerpt' ),
|
| 434 |
'category' => __( 'Category Archive', 'advanced-excerpt' ),
|
| 435 |
'tag' => __( 'Tag Archive', 'advanced-excerpt' ),
|
|
|
|
| 436 |
);
|
| 437 |
$exclude_pages_list = apply_filters( 'advanced_excerpt_exclude_pages_list', $exclude_pages_list );
|
| 438 |
|
| 92 |
$page_type_matches = array_intersect( $page_types, $skip_page_types );
|
| 93 |
if ( !empty( $page_types ) && !empty( $page_type_matches ) ) return;
|
| 94 |
|
| 95 |
+
// skip woocommerce products
|
| 96 |
+
if ( in_array( 'woocommerce', $skip_page_types ) && get_post_type( get_the_ID() ) == 'product' ) {
|
| 97 |
+
return;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
if ( 1 == $this->options['the_excerpt'] ) {
|
| 101 |
remove_all_filters( 'get_the_excerpt' );
|
| 102 |
remove_all_filters( 'the_excerpt' );
|
| 438 |
'author' => __( 'Author Archive', 'advanced-excerpt' ),
|
| 439 |
'category' => __( 'Category Archive', 'advanced-excerpt' ),
|
| 440 |
'tag' => __( 'Tag Archive', 'advanced-excerpt' ),
|
| 441 |
+
'woocommerce' => __( 'WooCommerce Products', 'advanced-excerpt' ),
|
| 442 |
);
|
| 443 |
$exclude_pages_list = apply_filters( 'advanced_excerpt_exclude_pages_list', $exclude_pages_list );
|
| 444 |
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: fancythemes, WPKube
|
|
| 3 |
Tags: post excerpt, excerpt, post, content, formatting
|
| 4 |
Requires at least: 3.2
|
| 5 |
Tested up to: 5.2
|
| 6 |
-
Stable tag: 4.3.
|
| 7 |
License: GPLv3
|
| 8 |
|
| 9 |
Control the appearance of WordPress post excerpts
|
|
@@ -95,6 +95,9 @@ However, you can [start The Loop manually](http://codex.wordpress.org/The_Loop#M
|
|
| 95 |
2. An example of an excerpt generated by the plugin
|
| 96 |
|
| 97 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 98 |
= 4.3.0 ( June 14th, 2019 ) =
|
| 99 |
* Fix - Conflict with Sassy Social Share plugin
|
| 100 |
|
| 3 |
Tags: post excerpt, excerpt, post, content, formatting
|
| 4 |
Requires at least: 3.2
|
| 5 |
Tested up to: 5.2
|
| 6 |
+
Stable tag: 4.3.1
|
| 7 |
License: GPLv3
|
| 8 |
|
| 9 |
Control the appearance of WordPress post excerpts
|
| 95 |
2. An example of an excerpt generated by the plugin
|
| 96 |
|
| 97 |
== Changelog ==
|
| 98 |
+
= 4.3.1 ( June 21st, 2019 ) =
|
| 99 |
+
* New - Option to disable the functionality for WooCommerce products
|
| 100 |
+
|
| 101 |
= 4.3.0 ( June 14th, 2019 ) =
|
| 102 |
* Fix - Conflict with Sassy Social Share plugin
|
| 103 |
|
