Testimonials by WooThemes - Version 1.2.1

Version Description

  • Minor bugfixes in the "order" directions options.
  • Adds support for random ordering in the widget.
Download this release

Release Info

Developer woothemes
Plugin Icon wp plugin Testimonials by WooThemes
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

classes/class-woothemes-testimonials.php CHANGED
@@ -366,8 +366,8 @@ class Woothemes_Testimonials {
366
  $response = '';
367
 
368
  if ( has_post_thumbnail( $id ) ) {
369
- // If not a string or an array, and not an integer, default to 50x50.
370
- if ( is_int( $size ) || ( 0 < intval( $size ) ) ) {
371
  $size = array( intval( $size ), intval( $size ) );
372
  } elseif ( ! is_string( $size ) && ! is_array( $size ) ) {
373
  $size = array( 50, 50 );
366
  $response = '';
367
 
368
  if ( has_post_thumbnail( $id ) ) {
369
+ // If not a string or an array, and not an integer, default to 150x9999.
370
+ if ( ( is_int( $size ) || ( 0 < intval( $size ) ) ) && ! is_array( $size ) ) {
371
  $size = array( intval( $size ), intval( $size ) );
372
  } elseif ( ! is_string( $size ) && ! is_array( $size ) ) {
373
  $size = array( 50, 50 );
classes/class-woothemes-widget-testimonials.php CHANGED
@@ -229,7 +229,8 @@ class Woothemes_Widget_Testmonials extends WP_Widget {
229
  'ID' => __( 'Entry ID', 'woothemes-testimonials' ),
230
  'title' => __( 'Title', 'woothemes-testimonials' ),
231
  'date' => __( 'Date Added', 'woothemes-testimonials' ),
232
- 'menu_order' => __( 'Specified Order Setting', 'woothemes-testimonials' )
 
233
  );
234
  } // End get_orderby_options()
235
 
@@ -240,8 +241,8 @@ class Woothemes_Widget_Testmonials extends WP_Widget {
240
  */
241
  protected function get_order_options () {
242
  return array(
243
- 'asc' => __( 'Ascending', 'woothemes-testimonials' ),
244
- 'desc' => __( 'Descending', 'woothemes-testimonials' )
245
  );
246
  } // End get_order_options()
247
  } // End Class
229
  'ID' => __( 'Entry ID', 'woothemes-testimonials' ),
230
  'title' => __( 'Title', 'woothemes-testimonials' ),
231
  'date' => __( 'Date Added', 'woothemes-testimonials' ),
232
+ 'menu_order' => __( 'Specified Order Setting', 'woothemes-testimonials' ),
233
+ 'rand' => __( 'Random Order', 'woothemes-testimonials' )
234
  );
235
  } // End get_orderby_options()
236
 
241
  */
242
  protected function get_order_options () {
243
  return array(
244
+ 'ASC' => __( 'Ascending', 'woothemes-testimonials' ),
245
+ 'DESC' => __( 'Descending', 'woothemes-testimonials' )
246
  );
247
  } // End get_order_options()
248
  } // End Class
lang/woothemes-testimonials-en_GB.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Testimonials v1.2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2012-11-28 09:51:33+0000\n"
7
  "Last-Translator: Matty <matt@woothemes.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -286,12 +286,12 @@ msgstr ""
286
  msgid "Specified Order Setting"
287
  msgstr ""
288
 
289
- #: classes/class-woothemes-widget-testimonials.php:243
290
  #@ woothemes-testimonials
291
  msgid "Ascending"
292
  msgstr ""
293
 
294
- #: classes/class-woothemes-widget-testimonials.php:244
295
  #@ woothemes-testimonials
296
  msgid "Descending"
297
  msgstr ""
@@ -311,3 +311,8 @@ msgstr ""
311
  msgid "Display Avatar"
312
  msgstr ""
313
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Testimonials v1.2.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2013-01-03 08:54:32+0000\n"
7
  "Last-Translator: Matty <matt@woothemes.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
286
  msgid "Specified Order Setting"
287
  msgstr ""
288
 
289
+ #: classes/class-woothemes-widget-testimonials.php:244
290
  #@ woothemes-testimonials
291
  msgid "Ascending"
292
  msgstr ""
293
 
294
+ #: classes/class-woothemes-widget-testimonials.php:245
295
  #@ woothemes-testimonials
296
  msgid "Descending"
297
  msgstr ""
311
  msgid "Display Avatar"
312
  msgstr ""
313
 
314
+ #: classes/class-woothemes-widget-testimonials.php:233
315
+ #@ woothemes-testimonials
316
+ msgid "Random Order"
317
+ msgstr ""
318
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: woothemes, mattyza, jameskoster
3
  Donate link: http://woothemes.com/
4
  Tags: testimonials, widget, shortcode, template-tag, feedback, customers
5
  Requires at least: 3.4.2
6
- Tested up to: 3.5-beta3
7
- Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -95,6 +95,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
95
 
96
  == Upgrade Notice ==
97
 
 
 
 
 
98
  = 1.2.0 =
99
  * Adds basic WPML support.
100
  * Enhancements to the widget output.
@@ -108,6 +112,12 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
108
 
109
  == Changelog ==
110
 
 
 
 
 
 
 
111
  = 1.2.0 =
112
  * 2012-11-28
113
  * Adds basic WPML support to the get_features() method.
3
  Donate link: http://woothemes.com/
4
  Tags: testimonials, widget, shortcode, template-tag, feedback, customers
5
  Requires at least: 3.4.2
6
+ Tested up to: 3.5
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
95
 
96
  == Upgrade Notice ==
97
 
98
+ = 1.2.1 =
99
+ * Minor bugfixes in the "order" directions options.
100
+ * Adds support for random ordering in the widget.
101
+
102
  = 1.2.0 =
103
  * Adds basic WPML support.
104
  * Enhancements to the widget output.
112
 
113
  == Changelog ==
114
 
115
+ = 1.2.1 =
116
+ * 2013-01-03
117
+ * Minor bugfixes in the "order" directions options.
118
+ * Adds support for random ordering in the widget.
119
+ * Allow the "size" parameter to receive an array when used with the template tag or do_action() call.
120
+
121
  = 1.2.0 =
122
  * 2012-11-28
123
  * Adds basic WPML support to the get_features() method.
woothemes-testimonials.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://woothemes.com/
5
  * Description: Hi, I'm your testimonials management plugin for WordPress. Show off what your customers or website users are saying about your business and how great they say you are, using our shortcode, widget or template tag.
6
  * Author: WooThemes
7
- * Version: 1.2.0
8
  * Author URI: http://woothemes.com/
9
  *
10
  * @package WordPress
4
  * Plugin URI: http://woothemes.com/
5
  * Description: Hi, I'm your testimonials management plugin for WordPress. Show off what your customers or website users are saying about your business and how great they say you are, using our shortcode, widget or template tag.
6
  * Author: WooThemes
7
+ * Version: 1.2.1
8
  * Author URI: http://woothemes.com/
9
  *
10
  * @package WordPress