Version Description
( December 17th, 2019 ) = * Fix - Sentence finish option not working properly if . ? or ! are followed by another character such as " for example
Download this release
Release Info
Developer | wpkube |
Plugin | Advanced Excerpt |
Version | 4.3.4 |
Comparing to | |
See all releases |
Code changes from version 4.3.3 to 4.3.4
- advanced-excerpt.php +2 -2
- class/advanced-excerpt.php +2 -2
- readme.txt +5 -2
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.4
|
7 |
Author: WPKube
|
8 |
Author URI: https://wpkube.com
|
9 |
*/
|
10 |
|
11 |
+
$GLOBALS['advanced_excerpt_version'] = '4.3.4';
|
12 |
|
13 |
function advanced_excerpt_load_textdomain() {
|
14 |
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
class/advanced-excerpt.php
CHANGED
@@ -334,9 +334,9 @@ class Advanced_Excerpt {
|
|
334 |
foreach ( $tokens[0] as $t ) { // Parse each token
|
335 |
if ( $w >= $length && 'sentence' != $finish ) { // Limit reached
|
336 |
break;
|
337 |
-
|
338 |
if ( $t[0] != '<' ) { // Token is not a tag
|
339 |
-
if ( $w >= $length && 'sentence' == $finish && preg_match( '/[\?\.\!]
|
340 |
$out .= trim( $t );
|
341 |
break;
|
342 |
}
|
334 |
foreach ( $tokens[0] as $t ) { // Parse each token
|
335 |
if ( $w >= $length && 'sentence' != $finish ) { // Limit reached
|
336 |
break;
|
337 |
+
}
|
338 |
if ( $t[0] != '<' ) { // Token is not a tag
|
339 |
+
if ( $w >= $length && 'sentence' == $finish && preg_match( '/[\?\.\!].*$/uS', $t ) == 1 ) { // Limit reached, continue until ? . or ! occur at the end
|
340 |
$out .= trim( $t );
|
341 |
break;
|
342 |
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: fancythemes, WPKube
|
3 |
Tags: post excerpt, excerpt, post, content, formatting
|
4 |
Requires at least: 3.2
|
5 |
-
Tested up to: 5.
|
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.3 ( October 5th, 2019 ) =
|
99 |
* Fix - Conflict with "WPTouch" plugin
|
100 |
* Fix - Conflict with "bbPress" plugin
|
2 |
Contributors: fancythemes, WPKube
|
3 |
Tags: post excerpt, excerpt, post, content, formatting
|
4 |
Requires at least: 3.2
|
5 |
+
Tested up to: 5.3
|
6 |
+
Stable tag: 4.3.4
|
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.4 ( December 17th, 2019 ) =
|
99 |
+
* Fix - Sentence finish option not working properly if . ? or ! are followed by another character such as " for example
|
100 |
+
|
101 |
= 4.3.3 ( October 5th, 2019 ) =
|
102 |
* Fix - Conflict with "WPTouch" plugin
|
103 |
* Fix - Conflict with "bbPress" plugin
|