Testimonials by WooThemes - Version 1.5.4

Version Description

  • 2015-07-07
  • Removes deprecated constructor call for WP_Widget
Download this release

Release Info

Developer jameskoster
Plugin Icon wp plugin Testimonials by WooThemes
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3 to 1.5.4

assets/css/admin.css CHANGED
File without changes
assets/css/admin.less CHANGED
@@ -1,4 +1,4 @@
1
- // Team members icon
2
- #adminmenu .menu-icon-testimonial div.wp-menu-image:before {
3
- content: '\f122';
4
  }
1
+ // Team members icon
2
+ #adminmenu .menu-icon-testimonial div.wp-menu-image:before {
3
+ content: '\f122';
4
  }
classes/class-woothemes-testimonials-taxonomy.php CHANGED
File without changes
classes/class-woothemes-testimonials.php CHANGED
@@ -42,6 +42,9 @@ class Woothemes_Testimonials {
42
 
43
  add_action( 'init', array( $this, 'register_post_type' ) );
44
  add_action( 'init', array( $this, 'register_taxonomy' ) );
 
 
 
45
 
46
  if ( is_admin() ) {
47
  global $pagenow;
@@ -103,7 +106,7 @@ class Woothemes_Testimonials {
103
  'capability_type' => 'post',
104
  'has_archive' => $archive_slug,
105
  'hierarchical' => false,
106
- 'supports' => array( 'title', 'author' ,'editor', 'thumbnail', 'page-attributes' ),
107
  'menu_position' => 5,
108
  'menu_icon' => ''
109
  );
@@ -563,4 +566,28 @@ class Woothemes_Testimonials {
563
  public function ensure_post_thumbnails_support () {
564
  if ( ! current_theme_supports( 'post-thumbnails' ) ) { add_theme_support( 'post-thumbnails' ); }
565
  } // End ensure_post_thumbnails_support()
566
- } // End Class
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  add_action( 'init', array( $this, 'register_post_type' ) );
44
  add_action( 'init', array( $this, 'register_taxonomy' ) );
45
+ add_action( 'init', array( $this, 'support_jetpack_omnisearch' ) );
46
+ add_filter( 'jetpack_relatedposts_filter_headline', array( $this, 'support_jetpack_relatedposts' ) );
47
+
48
 
49
  if ( is_admin() ) {
50
  global $pagenow;
106
  'capability_type' => 'post',
107
  'has_archive' => $archive_slug,
108
  'hierarchical' => false,
109
+ 'supports' => array( 'title', 'author' ,'editor', 'thumbnail', 'page-attributes', 'publicize', 'wpcom-markdown' ),
110
  'menu_position' => 5,
111
  'menu_icon' => ''
112
  );
566
  public function ensure_post_thumbnails_support () {
567
  if ( ! current_theme_supports( 'post-thumbnails' ) ) { add_theme_support( 'post-thumbnails' ); }
568
  } // End ensure_post_thumbnails_support()
569
+
570
+ /**
571
+ * Add Testimonial Support to Jetpack Omnisearch
572
+ */
573
+ public function support_jetpack_omnisearch() {
574
+ if ( class_exists( 'Jetpack_Omnisearch_Posts' ) ) {
575
+ new Jetpack_Omnisearch_Posts( 'testimonial' );
576
+ }
577
+ }
578
+
579
+ /**
580
+ * Better Jetpack Related Posts Support for Testimonials
581
+ */
582
+ function support_jetpack_relatedposts( $headline ) {
583
+ if ( is_singular( 'testimonial' ) ) {
584
+ $headline = sprintf(
585
+ '<h3 class="jp-relatedposts-headline"><em>%s</em></h3>',
586
+ esc_html( 'Similar Testimonials' )
587
+ );
588
+ return $headline;
589
+ }
590
+ }
591
+
592
+ } // End Class
593
+
classes/class-woothemes-widget-testimonials.php CHANGED
@@ -50,7 +50,7 @@ class Woothemes_Widget_Testimonials extends WP_Widget {
50
  $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => $this->woothemes_widget_idbase );
51
 
52
  /* Create the widget. */
53
- $this->WP_Widget( $this->woothemes_widget_idbase, $this->woothemes_widget_title, $widget_ops, $control_ops );
54
  } // End __construct()
55
 
56
  /**
@@ -268,4 +268,4 @@ class Woothemes_Widget_Testimonials extends WP_Widget {
268
 
269
  /* Register the widget. */
270
  add_action( 'widgets_init', create_function( '', 'return register_widget("Woothemes_Widget_Testimonials");' ), 1 );
271
- ?>
50
  $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => $this->woothemes_widget_idbase );
51
 
52
  /* Create the widget. */
53
+ parent::__construct( $this->woothemes_widget_idbase, $this->woothemes_widget_title, $widget_ops, $control_ops );
54
  } // End __construct()
55
 
56
  /**
268
 
269
  /* Register the widget. */
270
  add_action( 'widgets_init', create_function( '', 'return register_widget("Woothemes_Widget_Testimonials");' ), 1 );
271
+ ?>
lang/woothemes-testimonials-en_GB.po CHANGED
File without changes
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Testimonials by WooThemes ===
2
- 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: 4.0
7
- Stable tag: 1.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,6 +97,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
97
 
98
  == Upgrade Notice =
99
 
 
 
 
 
100
  = 1.4.1 =
101
  * Fixes display of testimonials when no "id" parameter is set.
102
 
@@ -130,6 +134,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
130
 
131
  == Changelog ==
132
 
 
 
 
 
133
  = 1.5.3 =
134
  * 2014-07-03
135
  * Fix - $post global in template inadvertently removed in 1.5.2.
1
  === Testimonials by WooThemes ===
2
+ Contributors: woothemes, mattyza, jameskoster, jeffikus
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.9.1
7
+ Stable tag: 1.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Upgrade Notice =
99
 
100
+ = 1.5.4 =
101
+ * 2015-07-07
102
+ * Removes deprecated constructor call for WP_Widget
103
+
104
  = 1.4.1 =
105
  * Fixes display of testimonials when no "id" parameter is set.
106
 
134
 
135
  == Changelog ==
136
 
137
+ = 1.5.4 =
138
+ * 2015-07-07
139
+ * Removes deprecated constructor call for WP_Widget
140
+
141
  = 1.5.3 =
142
  * 2014-07-03
143
  * Fix - $post global in template inadvertently removed in 1.5.2.
woothemes-testimonials-template.php CHANGED
File without changes
woothemes-testimonials.php CHANGED
@@ -4,8 +4,9 @@
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.5.3
8
  * Author URI: http://woothemes.com/
 
9
  *
10
  * @package WordPress
11
  * @subpackage Woothemes_Testimonials
@@ -19,4 +20,4 @@ require_once( 'woothemes-testimonials-template.php' );
19
  require_once( 'classes/class-woothemes-widget-testimonials.php' );
20
  global $woothemes_testimonials;
21
  $woothemes_testimonials = new Woothemes_Testimonials( __FILE__ );
22
- $woothemes_testimonials->version = '1.5.3';
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.5.4
8
  * Author URI: http://woothemes.com/
9
+ * Text Domain: testimonials-by-woothemes
10
  *
11
  * @package WordPress
12
  * @subpackage Woothemes_Testimonials
20
  require_once( 'classes/class-woothemes-widget-testimonials.php' );
21
  global $woothemes_testimonials;
22
  $woothemes_testimonials = new Woothemes_Testimonials( __FILE__ );
23
+ $woothemes_testimonials->version = '1.5.4';