Testimonials Widget - Version 0.2.14

Version Description

  • Fix apply_filters the_title to widget_title call - Thank you creemorian
  • Replace mysql_real_escape_string with sanitize_text_field - Thank you Seemap
Download this release

Release Info

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

Code changes from version 0.2.13 to 0.2.14

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://typo3vagabond.com/about-typo3-vagabond/donate/
4
  Tags: testimonial, testimonials, quote, quotes, quotations, random quote, sidebar, widget
5
  Requires at least: 3.0
6
  Tested up to: 3.4.1
7
- Stable tag: 0.2.13
8
 
9
  Testimonials widget plugin allows you display testimonials in a widget on your WordPress blog.
10
 
@@ -172,6 +172,10 @@ Change the value of the variable `$testimonialswidget_admin_userlevel` on line 3
172
  = trunk =
173
  -
174
 
 
 
 
 
175
  = 0.2.13 =
176
  * Clean up CSS
177
  * Remove q & cite p wrapper
4
  Tags: testimonial, testimonials, quote, quotes, quotations, random quote, sidebar, widget
5
  Requires at least: 3.0
6
  Tested up to: 3.4.1
7
+ Stable tag: 0.2.14
8
 
9
  Testimonials widget plugin allows you display testimonials in a widget on your WordPress blog.
10
 
172
  = trunk =
173
  -
174
 
175
+ = 0.2.14 =
176
+ * Fix apply_filters the_title to widget_title call - Thank you creemorian
177
+ * Replace mysql_real_escape_string with sanitize_text_field - Thank you Seemap
178
+
179
  = 0.2.13 =
180
  * Clean up CSS
181
  * Remove q & cite p wrapper
testimonials-widget-widget.php CHANGED
@@ -37,7 +37,7 @@ class testimonials_widget extends WP_Widget {
37
  extract( $args );
38
 
39
  /* Our variables from the widget settings. */
40
- $title = apply_filters('the_title', $instance['title'], null);
41
 
42
  $testimonials = testimonialswidget_display_testimonials( $instance, $this->number );
43
 
37
  extract( $args );
38
 
39
  /* Our variables from the widget settings. */
40
+ $title = apply_filters('widget_title', $instance['title'], null);
41
 
42
  $testimonials = testimonialswidget_display_testimonials( $instance, $this->number );
43
 
testimonials-widget.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Testimonials Widget
4
  Description: Testimonial widget plugin helps you display testimonials in a sidebar on your WordPress blog.
5
- Version: 0.2.13
6
  Author: Michael Cannon
7
  Author URI: http://typo3vagabond.com/about-typo3-vagabond/hire-michael/
8
  License: GPL2
@@ -64,7 +64,7 @@ function testimonialswidget_display_testimonials( $args, $widget_number = '' ) {
64
  $taglist = explode(',', $tags);
65
  $tag_conditions = '';
66
  foreach($taglist as $tag) {
67
- $tag = mysql_real_escape_string(strip_tags(trim($tag)));
68
  if($tag_conditions) {
69
  if ( $tags_all ) {
70
  $tag_conditions .= ' AND ';
@@ -268,7 +268,7 @@ function testimonialswidget_list_shortcode($atts, $content = null) {
268
  $idlist = explode(',', $ids);
269
  $id_conditions = '';
270
  foreach($idlist as $id) {
271
- $id = mysql_real_escape_string(strip_tags(trim($id)));
272
  if($id_conditions) {
273
  $id_conditions .= ' OR ';
274
  }
@@ -281,7 +281,7 @@ function testimonialswidget_list_shortcode($atts, $content = null) {
281
  $taglist = explode(',', $tags);
282
  $tag_conditions = '';
283
  foreach($taglist as $tag) {
284
- $tag = mysql_real_escape_string(strip_tags(trim($tag)));
285
  if($tag_conditions) {
286
  $tag_conditions .= ' OR ';
287
  }
2
  /*
3
  Plugin Name: Testimonials Widget
4
  Description: Testimonial widget plugin helps you display testimonials in a sidebar on your WordPress blog.
5
+ Version: 0.2.14
6
  Author: Michael Cannon
7
  Author URI: http://typo3vagabond.com/about-typo3-vagabond/hire-michael/
8
  License: GPL2
64
  $taglist = explode(',', $tags);
65
  $tag_conditions = '';
66
  foreach($taglist as $tag) {
67
+ $tag = sanitize_text_field($tag);
68
  if($tag_conditions) {
69
  if ( $tags_all ) {
70
  $tag_conditions .= ' AND ';
268
  $idlist = explode(',', $ids);
269
  $id_conditions = '';
270
  foreach($idlist as $id) {
271
+ $id = sanitize_text_field($id);
272
  if($id_conditions) {
273
  $id_conditions .= ' OR ';
274
  }
281
  $taglist = explode(',', $tags);
282
  $tag_conditions = '';
283
  foreach($taglist as $tag) {
284
+ $tag = sanitize_text_field($tag);
285
  if($tag_conditions) {
286
  $tag_conditions .= ' OR ';
287
  }