Testimonials Widget - Version 2.8.4

Version Description

  • BUGFIX Title link does not allow a relative link
Download this release

Release Info

Developer comprock
Plugin Icon wp plugin Testimonials Widget
Version 2.8.4
Comparing to
See all releases

Code changes from version 2.8.3 to 2.8.4

lib/settings.testimonials-widget.php CHANGED
@@ -741,7 +741,7 @@ EOD;
741
  $input['tags_all'] = empty( $input['tags_all'] ) ? 0 : self::is_true_int( $input['tags_all'] );
742
  $input['target'] = ( empty( $input['target'] ) || preg_match( '#^\w+$#', $input['target'] ) ) ? $input['target'] : self::$defaults['target'];
743
  $input['title'] = wp_kses_post( $input['title'] );
744
- $input['title_link'] = wp_kses_data( $input['title_link'] );
745
  $input['version'] = self::$version;
746
 
747
  $input = apply_filters( 'testimonials_widget_validate_settings', $input );
741
  $input['tags_all'] = empty( $input['tags_all'] ) ? 0 : self::is_true_int( $input['tags_all'] );
742
  $input['target'] = ( empty( $input['target'] ) || preg_match( '#^\w+$#', $input['target'] ) ) ? $input['target'] : self::$defaults['target'];
743
  $input['title'] = wp_kses_post( $input['title'] );
744
+ $input['title_link'] = wp_kses_data( trim( $input['title_link'] ) );
745
  $input['version'] = self::$version;
746
 
747
  $input = apply_filters( 'testimonials_widget_validate_settings', $input );
lib/testimonials-widget-widget.php CHANGED
@@ -64,7 +64,12 @@ class Testimonials_Widget_Widget extends WP_Widget {
64
 
65
  $title = $new_title;
66
  } else {
67
- if ( 0 === preg_match( "#https?://#", $title_link ) ) {
 
 
 
 
 
68
  $title_link = 'http://' . $title_link;
69
  }
70
 
64
 
65
  $title = $new_title;
66
  } else {
67
+ $do_http = true;
68
+
69
+ if ( 0 === strpos( $title_link, '/' ) )
70
+ $do_http = false;
71
+
72
+ if ( $do_http && 0 === preg_match( "#https?://#", $title_link ) ) {
73
  $title_link = 'http://' . $title_link;
74
  }
75
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://aihr.us/about-aihrus/donate/
4
  Tags: client, customer, quotations, quote, quotes, random, review, quote, recommendation, reference, testimonial, testimonials, testimony, widget, wpml
5
  Requires at least: 3.4
6
  Tested up to: 3.6.0
7
- Stable tag: 2.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -1122,6 +1122,9 @@ Visit the [support forum](http://wordpress.org/support/plugin/testimonials-widge
1122
  == Changelog ==
1123
  = trunk =
1124
 
 
 
 
1125
  = 2.8.3 =
1126
  * BUGFIX [Selection > Category Filter doesn't remember >1 category](http://wordpress.org/support/topic/selection-category-filter-doesnt-remember-1-category)
1127
  * FAQ 67 testimonials paging doesn't work
@@ -1879,3 +1882,4 @@ Visit the [support forum](http://wordpress.org/support/plugin/testimonials-widge
1879
  Is there something you want done? Write it up on the [support forums](http://wordpress.org/support/plugin/testimonials-widget) and then [donate](http://aihr.us/about-aihrus/donate/) or [send along](http://aihr.us/contact-aihrus/) an [awesome testimonial](http://aihr.us/about-aihrus/testimonials/).
1880
 
1881
  * BUG [Post Types Order](http://wordpress.org/support/topic/random-order-doesnt-work) - sorting conflict
 
4
  Tags: client, customer, quotations, quote, quotes, random, review, quote, recommendation, reference, testimonial, testimonials, testimony, widget, wpml
5
  Requires at least: 3.4
6
  Tested up to: 3.6.0
7
+ Stable tag: 2.8.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
1122
  == Changelog ==
1123
  = trunk =
1124
 
1125
+ = 2.8.4 =
1126
+ * BUGFIX [Title link does not allow a relative link](http://wordpress.org/support/topic/title-link-does-not-allow-a-relative-link)
1127
+
1128
  = 2.8.3 =
1129
  * BUGFIX [Selection > Category Filter doesn't remember >1 category](http://wordpress.org/support/topic/selection-category-filter-doesnt-remember-1-category)
1130
  * FAQ 67 testimonials paging doesn't work
1882
  Is there something you want done? Write it up on the [support forums](http://wordpress.org/support/plugin/testimonials-widget) and then [donate](http://aihr.us/about-aihrus/donate/) or [send along](http://aihr.us/contact-aihrus/) an [awesome testimonial](http://aihr.us/about-aihrus/testimonials/).
1883
 
1884
  * BUG [Post Types Order](http://wordpress.org/support/topic/random-order-doesnt-work) - sorting conflict
1885
+ * Add location field after title
testimonials-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Testimonials Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/testimonials-widget/
5
  Description: Testimonials Widget plugin allows you to display random or rotating portfolio, quotes, reviews, showcases, or text with images on your WordPress blog.
6
- Version: 2.8.3
7
  Author: Michael Cannon
8
  Author URI: http://aihr.us/about-aihrus/michael-cannon-resume/
9
  License: GPLv2 or later
3
  Plugin Name: Testimonials Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/testimonials-widget/
5
  Description: Testimonials Widget plugin allows you to display random or rotating portfolio, quotes, reviews, showcases, or text with images on your WordPress blog.
6
+ Version: 2.8.4
7
  Author: Michael Cannon
8
  Author URI: http://aihr.us/about-aihrus/michael-cannon-resume/
9
  License: GPLv2 or later