Strong Testimonials - Version 2.51.2

Version Description

Download this release

Release Info

Developer giucu91
Plugin Icon 128x128 Strong Testimonials
Version 2.51.2
Comparing to
See all releases

Code changes from version 2.51.1 to 2.51.2

changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = v2.51.1 - 18/02/2021 =
2
  - Fixed: Extensions page CSS.
3
 
1
+ = v2.51.2 - 25/02/2021 =
2
+ - Fixed: Manual excerpt ( https://github.com/WPChill/strong-testimonials/issues/220 )
3
+
4
  = v2.51.1 - 18/02/2021 =
5
  - Fixed: Extensions page CSS.
6
 
includes/functions-content.php CHANGED
@@ -191,11 +191,12 @@ function wpmtst_trim_words( $text, $num_words = 55, $more = null, $hybrid = fals
191
  if ( $hybrid ) {
192
  $text = wpmtst_assemble_hybrid( $words_array, $num_words, $sep, $more, $full_text, $excerpt );
193
  } else {
194
- $text = wpmtst_assemble_excerpt( $words_array, $sep, $more );
195
  }
196
  } else {
197
  $text = implode( $sep, $words_array );
198
  }
 
199
  return $text;
200
  }
201
 
@@ -209,7 +210,10 @@ function wpmtst_trim_words( $text, $num_words = 55, $more = null, $hybrid = fals
209
  *
210
  * @return string
211
  */
212
- function wpmtst_assemble_excerpt( $words_array, $sep, $more ) {
 
 
 
213
  array_pop( $words_array );
214
  $text = implode( $sep, $words_array );
215
 
@@ -240,7 +244,7 @@ function wpmtst_assemble_hybrid( $words_array, $num_words, $sep, $more, $full_te
240
  }
241
  $second_half = implode( $sep, array_slice( $words_array, $num_words ) );
242
  $wrap_open_class = '';
243
- if ( WPMST()->atts( 'html_content' ) ) {
244
  $second_half = $full_text;
245
  $wrap_open_class = 'all-html';
246
  }
191
  if ( $hybrid ) {
192
  $text = wpmtst_assemble_hybrid( $words_array, $num_words, $sep, $more, $full_text, $excerpt );
193
  } else {
194
+ $text = wpmtst_assemble_excerpt( $words_array, $sep, $more, $excerpt );
195
  }
196
  } else {
197
  $text = implode( $sep, $words_array );
198
  }
199
+
200
  return $text;
201
  }
202
 
210
  *
211
  * @return string
212
  */
213
+ function wpmtst_assemble_excerpt( $words_array, $sep, $more, $excerpt = '' ) {
214
+ if (!empty($excerpt)) {
215
+ return $excerpt;
216
+ }
217
  array_pop( $words_array );
218
  $text = implode( $sep, $words_array );
219
 
244
  }
245
  $second_half = implode( $sep, array_slice( $words_array, $num_words ) );
246
  $wrap_open_class = '';
247
+ if ( WPMST()->atts( 'html_content' ) || !empty($excerpt) ) {
248
  $second_half = $full_text;
249
  $wrap_open_class = 'all-html';
250
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpchill,silkalns,cdillon27
3
  Tags: testimonials, testimonial slider, testimonial form, star ratings
4
  Requires at least: 5.2
5
  Requires PHP: 5.6
6
- Tested up to: 5.6
7
- Stable tag: 2.51.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
3
  Tags: testimonials, testimonial slider, testimonial form, star ratings
4
  Requires at least: 5.2
5
  Requires PHP: 5.6
6
+ Tested up to: 5.7
7
+ Stable tag: 2.51.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
strong-testimonials.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Collect and display your testimonials or reviews.
6
  * Author: WPChill
7
  * Author URI: https://wpchill.com/
8
- * Version: 2.51.1
9
  * Text Domain: strong-testimonials
10
  * Domain Path: /languages
11
  * Requires: 4.6 or higher
@@ -45,7 +45,7 @@ if ( ! defined( 'ABSPATH' ) ) {
45
  exit;
46
  }
47
 
48
- define( 'WPMTST_VERSION', '2.51.1' );
49
  define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
50
  define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
51
  defined( 'WPMTST_STORE_URL' ) || define( 'WPMTST_STORE_URL', 'https://strongtestimonials.com' );
5
  * Description: Collect and display your testimonials or reviews.
6
  * Author: WPChill
7
  * Author URI: https://wpchill.com/
8
+ * Version: 2.51.2
9
  * Text Domain: strong-testimonials
10
  * Domain Path: /languages
11
  * Requires: 4.6 or higher
45
  exit;
46
  }
47
 
48
+ define( 'WPMTST_VERSION', '2.51.2' );
49
  define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
50
  define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
51
  defined( 'WPMTST_STORE_URL' ) || define( 'WPMTST_STORE_URL', 'https://strongtestimonials.com' );