Testimonials Widget - Version 2.12.1

Version Description

= 2.12.0 =

  • CSS and JavaScript renaming
    • bottom_text renamed to bottom-text
    • close_quote renamed to close-quote
    • display_none renamed to display-none
    • join_location renamed to join-location
    • join_title renamed to join-title
    • open_quote renamed to open-quote
    • testimonialswidget_testimonial renamed to testimonials-widget-testimonial
    • testimonialswidget_testimonials renamed to testimonials-widget-testimonials

= 2.11.3 =

  • Correct filter name testimonials_widget_next_posts_link to testimonials_widget_next_posts_link_text

= 2.11.0 =

  • CSS class names are simplified. For the most part, other than testimonialswidget_testimonial remove testimonialswidget_ from the CSS class name in your CSS customizations.
    • Ex: .testimonialswidget_join becomes .join
    • Ex: .testimonialswidget_author becomes .author
  • Testimonials are now formatted using blockquote than q for HTML5 compliance. If you need q tag formatting, enable it at WP Admin > Testimonials > Settings, Compatibility & Reset tab
    • cite is now div.credit

= 2.8.0 =

  • Deprecated
    • hide_author now hide_source
  • Removed filters testimonials_widget_options_update, testimonials_widget_options_form
    • Use testimonials_widget_validate_settings and testimonials_widget_settings instead
  • Renamed variable and related class widget_text to bottom_text

= 2.7.3 =

  • Quotes are no longer handled via q, p:before, or p:after CSS. It's handled via .testimonialswidget_testimonial .testimonialswidget_open_quote:before and .testimonialswidget_testimonial .testimonialswidget_close_quote:after
  • This change was made to keep consistency in how quotes were managed and to reduce the number of exception cases. In the end, this is simpler.

= 2.7.0 =

  • Quotes with keep_whitespace=true aren't applied via CSS .testimonialswidget_testimonial q tag anymore, but .testimonialswidget_testimonial q p:first-child:before and .testimonialswidget_testimonial q p:last-child:after
  • Widget testimonial p tags are no longer CSS display: inline, display: block as expected

= 2.4.1 =

  • Paging is on by default, except for widgets

= 2.0.0 =

  • CSS
    • Class testimonialswidget_company replaces testimonialswidget_source
    • Class testimonialswidget_source replaces testimonialswidget_author
    • The tighten widget display up, p tags within q are displayed inline.
  • JavaScript
    • The JavaScript for rotating testimonials is moved to the footer. As such, your theme requires wp_footer() in the footer.
  • Shortcode options
    • hide_source replaced by hide_url
    • hide_author replaced by hide_source
  • Testimonials
    • Migration from the old custom table to new custom post type is automatically done. Import might take a few moments to complete.
    • Company, URL and email details are attempted to be identified and placed properly based upon the original author and source fields. The company is "guessed" from the author field when there's a ", " or " of " context. If the source is an email, it's saved as such. Otherwise, it's assumed to be a URL.
    • Public testimonials are saved as Published. Non-public testimonials are marked as Private.
  • Widget options
    • "Show author" and "Show source" options are replaced by "Hide source" and "Hide URL" respectively. There's no backwards compatibility for these changes.
    • Default min-height is now 250px than 150px.
Download this release

Release Info

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

Code changes from version 2.12.0 to 2.12.1

changelog.txt CHANGED
@@ -4,6 +4,12 @@
4
 
5
  = trunk =
6
 
 
 
 
 
 
 
7
  = 2.12.0 =
8
  * Add file headers to lib/class*
9
  * Add filter testimonials_widget_widget_options to alter displayed widget options
4
 
5
  = trunk =
6
 
7
+ = 2.12.1 =
8
+ * BUGFIX Settings memory leak [Sites hosed after update 2.12.0](http://wordpress.org/support/topic/premium-sites-hosed-after-update-2120)
9
+ * BUGFIX [importexport settings failure](http://wordpress.org/support/topic/errors-after-updating)
10
+ * Change update warning verbiage
11
+ * Update FAQ & support links to knowledge base
12
+
13
  = 2.12.0 =
14
  * Add file headers to lib/class*
15
  * Add filter testimonials_widget_widget_options to alter displayed widget options
languages/testimonials-widget.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Testimonials Widget package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Testimonials Widget 2.12.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
- "POT-Creation-Date: 2013-04-27 22:14:53+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -418,53 +418,53 @@ msgstr ""
418
  msgid "Pre 2.11.0. Not HTML5 compliant"
419
  msgstr ""
420
 
421
- #: lib/class-settings-testimonials-widget.php:447
422
- msgid "Remove Plugin Data on Deletion?"
423
  msgstr ""
424
 
425
- #: lib/class-settings-testimonials-widget.php:450
426
  msgid ""
427
- "Delete all Testimonials Widget data and options from database on plugin "
428
- "deletion"
 
429
  msgstr ""
430
 
431
- #: lib/class-settings-testimonials-widget.php:460
432
- msgid "Import/Export Settings"
433
  msgstr ""
434
 
435
- #: lib/class-settings-testimonials-widget.php:462
436
  msgid ""
437
- "These are your current settings in a text format. Copy the textarea contents "
438
- "to make a backup of your settings. You can paste new settings here to "
439
- "overwrite your current configuration."
440
  msgstr ""
441
 
442
- #: lib/class-settings-testimonials-widget.php:469
443
  msgid "Reset to Defaults?"
444
  msgstr ""
445
 
446
- #: lib/class-settings-testimonials-widget.php:472
447
  msgid "Check this box to reset options to their defaults"
448
  msgstr ""
449
 
450
- #: lib/class-settings-testimonials-widget.php:538
451
- #: lib/class-settings-testimonials-widget.php:575
452
  msgid "Testimonials Widget Settings"
453
  msgstr ""
454
 
455
- #: lib/class-settings-testimonials-widget.php:538 testimonials-widget.php:65
456
  msgid "Settings"
457
  msgstr ""
458
 
459
- #: lib/class-settings-testimonials-widget.php:594
460
  msgid "Save Changes"
461
  msgstr ""
462
 
463
- #: lib/class-settings-testimonials-widget.php:605
464
  msgid "Copyright ©%1$s %2$s."
465
  msgstr ""
466
 
467
- #: lib/class-settings-testimonials-widget.php:970
468
  msgid "Required"
469
  msgstr ""
470
 
@@ -472,7 +472,7 @@ msgstr ""
472
  msgid "Display testimonials with multiple selection and display options"
473
  msgstr ""
474
 
475
- #. #-#-#-#-# testimonials-widget.pot (Testimonials Widget 2.12.0) #-#-#-#-#
476
  #. Plugin Name of the plugin/theme
477
  #: lib/class-testimonials-widget-widget.php:37
478
  msgid "Testimonials Widget"
@@ -496,9 +496,8 @@ msgstr ""
496
 
497
  #: testimonials-widget.php:265
498
  msgid ""
499
- "Testimonials Widget has updated CSS naming and HTML5 layout options. Please "
500
- "<a href=\"%s\">read the FAQ</a> to make fixes if your testimonials display "
501
- "is funky"
502
  msgstr ""
503
 
504
  #: testimonials-widget.php:439
2
  # This file is distributed under the same license as the Testimonials Widget package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Testimonials Widget 2.12.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
+ "POT-Creation-Date: 2013-05-01 18:34:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
418
  msgid "Pre 2.11.0. Not HTML5 compliant"
419
  msgstr ""
420
 
421
+ #: lib/class-settings-testimonials-widget.php:452
422
+ msgid "Import/Export Settings"
423
  msgstr ""
424
 
425
+ #: lib/class-settings-testimonials-widget.php:454
426
  msgid ""
427
+ "These are your current settings in a text format. Copy the textarea contents "
428
+ "to make a backup of your settings. You can paste new settings here to "
429
+ "overwrite your current configuration."
430
  msgstr ""
431
 
432
+ #: lib/class-settings-testimonials-widget.php:462
433
+ msgid "Remove Plugin Data on Deletion?"
434
  msgstr ""
435
 
436
+ #: lib/class-settings-testimonials-widget.php:465
437
  msgid ""
438
+ "Delete all Testimonials Widget data and options from database on plugin "
439
+ "deletion"
 
440
  msgstr ""
441
 
442
+ #: lib/class-settings-testimonials-widget.php:471
443
  msgid "Reset to Defaults?"
444
  msgstr ""
445
 
446
+ #: lib/class-settings-testimonials-widget.php:474
447
  msgid "Check this box to reset options to their defaults"
448
  msgstr ""
449
 
450
+ #: lib/class-settings-testimonials-widget.php:540
451
+ #: lib/class-settings-testimonials-widget.php:577
452
  msgid "Testimonials Widget Settings"
453
  msgstr ""
454
 
455
+ #: lib/class-settings-testimonials-widget.php:540 testimonials-widget.php:65
456
  msgid "Settings"
457
  msgstr ""
458
 
459
+ #: lib/class-settings-testimonials-widget.php:596
460
  msgid "Save Changes"
461
  msgstr ""
462
 
463
+ #: lib/class-settings-testimonials-widget.php:607
464
  msgid "Copyright &copy;%1$s %2$s."
465
  msgstr ""
466
 
467
+ #: lib/class-settings-testimonials-widget.php:973
468
  msgid "Required"
469
  msgstr ""
470
 
472
  msgid "Display testimonials with multiple selection and display options"
473
  msgstr ""
474
 
475
+ #. #-#-#-#-# testimonials-widget.pot (Testimonials Widget 2.12.1) #-#-#-#-#
476
  #. Plugin Name of the plugin/theme
477
  #: lib/class-testimonials-widget-widget.php:37
478
  msgid "Testimonials Widget"
496
 
497
  #: testimonials-widget.php:265
498
  msgid ""
499
+ "If your Testimonials Widget display has gone to funky town, please <a href="
500
+ "\"%s\">read the FAQ</a> about possible CSS fixes."
 
501
  msgstr ""
502
 
503
  #: testimonials-widget.php:439
lib/class-settings-testimonials-widget.php CHANGED
@@ -442,6 +442,21 @@ class Testimonials_Widget_Settings {
442
  ),
443
  );
444
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  self::$settings['delete_data'] = array(
446
  'section' => 'reset',
447
  'title' => __( 'Remove Plugin Data on Deletion?', 'testimonials-widget' ),
@@ -451,19 +466,6 @@ class Testimonials_Widget_Settings {
451
  'widget' => 0,
452
  );
453
 
454
- $options = tw_get_options();
455
- $serialized_options = serialize( $options );
456
- $_SESSION['importexport'] = $serialized_options;
457
-
458
- self::$settings['importexport'] = array(
459
- 'section' => 'reset',
460
- 'title' => __( 'Import/Export Settings', 'testimonials-widget' ),
461
- 'type' => 'textarea',
462
- 'desc' => __( 'These are your current settings in a text format. Copy the textarea contents to make a backup of your settings. You can paste new settings here to overwrite your current configuration.', 'testimonials-widget' ),
463
- 'std' => $serialized_options,
464
- 'widget' => 0,
465
- );
466
-
467
  self::$settings['reset_defaults'] = array(
468
  'section' => 'reset',
469
  'title' => __( 'Reset to Defaults?', 'testimonials-widget' ),
@@ -871,8 +873,9 @@ EOD;
871
  if ( ! empty( $input['importexport'] ) && $_SESSION['importexport'] != $input['importexport'] ) {
872
  $importexport = $input['importexport'];
873
  $unserialized = unserialize( $importexport );
874
- foreach ( $unserialized as $id => $std ) {
875
- $input[$id] = $std;
 
876
  }
877
  }
878
  }
442
  ),
443
  );
444
 
445
+ $options = get_option( self::ID );
446
+ if ( ! empty( $options ) ) {
447
+ $serialized_options = serialize( $options );
448
+ $_SESSION['importexport'] = $serialized_options;
449
+
450
+ self::$settings['importexport'] = array(
451
+ 'section' => 'reset',
452
+ 'title' => __( 'Import/Export Settings', 'testimonials-widget' ),
453
+ 'type' => 'textarea',
454
+ 'desc' => __( 'These are your current settings in a text format. Copy the textarea contents to make a backup of your settings. You can paste new settings here to overwrite your current configuration.', 'testimonials-widget' ),
455
+ 'std' => $serialized_options,
456
+ 'widget' => 0,
457
+ );
458
+ }
459
+
460
  self::$settings['delete_data'] = array(
461
  'section' => 'reset',
462
  'title' => __( 'Remove Plugin Data on Deletion?', 'testimonials-widget' ),
466
  'widget' => 0,
467
  );
468
 
 
 
 
 
 
 
 
 
 
 
 
 
 
469
  self::$settings['reset_defaults'] = array(
470
  'section' => 'reset',
471
  'title' => __( 'Reset to Defaults?', 'testimonials-widget' ),
873
  if ( ! empty( $input['importexport'] ) && $_SESSION['importexport'] != $input['importexport'] ) {
874
  $importexport = $input['importexport'];
875
  $unserialized = unserialize( $importexport );
876
+ if ( is_array( $unserialized ) ) {
877
+ foreach ( $unserialized as $id => $std )
878
+ $input[$id] = $std;
879
  }
880
  }
881
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://aihr.us/about-aihrus/donate/
5
  Tags: client, customer, quotations, quote, quotes, random, review, quote, recommendation, reference, testimonial, testimonials, testimony, widget, wpml
6
  Requires at least: 3.4
7
  Tested up to: 3.6.0
8
- Stable tag: 2.12.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
5
  Tags: client, customer, quotations, quote, quotes, random, review, quote, recommendation, reference, testimonial, testimonials, testimony, widget, wpml
6
  Requires at least: 3.4
7
  Tested up to: 3.6.0
8
+ Stable tag: 2.12.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
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 selected portfolio, quotes, reviews, showcases, or text with images on your WordPress blog.
6
- * Version: 2.12.0
7
  * Author: Michael Cannon
8
  * Author URI: http://aihr.us/about-aihrus/michael-cannon-resume/
9
  * License: GPLv2 or later
@@ -30,7 +30,7 @@ class Testimonials_Widget {
30
  const ID = 'testimonials-widget-testimonials';
31
  const OLD_NAME = 'testimonialswidget';
32
  const PT = 'testimonials-widget';
33
- const VERSION = '2.12.0';
34
 
35
  private static $base = null;
36
  private static $max_num_pages = 0;
@@ -262,7 +262,7 @@ class Testimonials_Widget {
262
  public function admin_notices() {
263
  $content = '';
264
  $content .= '<div class="error"><p>';
265
- $content .= sprintf( __( 'Testimonials Widget has updated CSS naming and HTML5 layout options. Please <a href="%s">read the FAQ</a> to make fixes if your testimonials display is funky', 'testimonials-widget-premium', 'testimonials-widget' ), 'http://wordpress.org/extend/plugins/testimonials-widget/faq/' );
266
  $content .= '</p></div>';
267
 
268
  echo $content;
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 selected portfolio, quotes, reviews, showcases, or text with images on your WordPress blog.
6
+ * Version: 2.12.1
7
  * Author: Michael Cannon
8
  * Author URI: http://aihr.us/about-aihrus/michael-cannon-resume/
9
  * License: GPLv2 or later
30
  const ID = 'testimonials-widget-testimonials';
31
  const OLD_NAME = 'testimonialswidget';
32
  const PT = 'testimonials-widget';
33
+ const VERSION = '2.12.1';
34
 
35
  private static $base = null;
36
  private static $max_num_pages = 0;
262
  public function admin_notices() {
263
  $content = '';
264
  $content .= '<div class="error"><p>';
265
+ $content .= sprintf( __( 'If your Testimonials Widget display has gone to funky town, please <a href="%s">read the FAQ</a> about possible CSS fixes.', 'testimonials-widget-premium', 'testimonials-widget' ), 'http://wordpress.org/extend/plugins/testimonials-widget/faq/' );
266
  $content .= '</p></div>';
267
 
268
  echo $content;