Advanced Excerpt - Version 4.3.3

Version Description

( October 5th, 2019 ) = * Fix - Conflict with "WPTouch" plugin * Fix - Conflict with "bbPress" plugin

Download this release

Release Info

Developer wpkube
Plugin Icon wp plugin Advanced Excerpt
Version 4.3.3
Comparing to
See all releases

Code changes from version 4.3.2 to 4.3.3

Files changed (3) hide show
  1. advanced-excerpt.php +2 -2
  2. class/advanced-excerpt.php +13 -0
  3. readme.txt +5 -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.2
7
Author: WPKube
8
Author URI: https://wpkube.com
9
*/
10
11
- $GLOBALS['advanced_excerpt_version'] = '4.3.2';
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.3
7
Author: WPKube
8
Author URI: https://wpkube.com
9
*/
10
11
+ $GLOBALS['advanced_excerpt_version'] = '4.3.3';
12
13
function advanced_excerpt_load_textdomain() {
14
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
class/advanced-excerpt.php CHANGED
@@ -86,6 +86,9 @@ class Advanced_Excerpt {
86
* and instead use the_content(). As such, we also need to hook into the_content().
87
* To ensure we're not changing the content of single posts / pages we automatically exclude 'singular' page types.
88
*/
89
$page_types = $this->get_current_page_types();
90
$skip_page_types = array_unique( array_merge( array( 'singular' ), $this->options['exclude_pages'] ) );
91
$skip_page_types = apply_filters( 'advanced_excerpt_skip_page_types', $skip_page_types );
@@ -97,6 +100,16 @@ class Advanced_Excerpt {
97
return;
98
}
99
100
if ( 1 == $this->options['the_excerpt'] ) {
101
remove_all_filters( 'get_the_excerpt' );
102
remove_all_filters( 'the_excerpt' );
86
* and instead use the_content(). As such, we also need to hook into the_content().
87
* To ensure we're not changing the content of single posts / pages we automatically exclude 'singular' page types.
88
*/
89
+
90
+ add_filter( 'wppsac_excerpt', array( $this, 'filter_content' ) );
91
+
92
$page_types = $this->get_current_page_types();
93
$skip_page_types = array_unique( array_merge( array( 'singular' ), $this->options['exclude_pages'] ) );
94
$skip_page_types = apply_filters( 'advanced_excerpt_skip_page_types', $skip_page_types );
100
return;
101
}
102
103
+ // conflict with WPTouch
104
+ if ( function_exists( 'wptouch_is_mobile_theme_showing' ) && wptouch_is_mobile_theme_showing() ) {
105
+ return;
106
+ }
107
+
108
+ // skip bbpress
109
+ if ( function_exists( 'is_bbpress' ) && is_bbpress() ) {
110
+ return;
111
+ }
112
+
113
if ( 1 == $this->options['the_excerpt'] ) {
114
remove_all_filters( 'get_the_excerpt' );
115
remove_all_filters( 'the_excerpt' );
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.2
7
License: GPLv3
8
9
Control the appearance of WordPress post excerpts
@@ -95,6 +95,10 @@ 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.2 ( September 24th, 2019 ) =
99
* Fix - Conflict with "The Events Calendar" 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.3
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.3 ( October 5th, 2019 ) =
99
+ * Fix - Conflict with "WPTouch" plugin
100
+ * Fix - Conflict with "bbPress" plugin
101
+
102
= 4.3.2 ( September 24th, 2019 ) =
103
* Fix - Conflict with "The Events Calendar" plugin
104