Cherry Team Members - Version 1.3.2

Version Description

  • FIX: Minor fixes.
Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Team Members
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

cherry-team-members.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Team Members
4
  * Plugin URI: http://www.templatemonster.com/wordpress-themes.php
5
  * Description: Cherry Team Members plugin allows you to showcase your team and personnel.
6
- * Version: 1.3.1
7
  * Author: TemplateMonster
8
  * Author URI: http://www.templatemonster.com/
9
  * Text Domain: cherry-team
@@ -45,7 +45,7 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
45
  *
46
  * @var string
47
  */
48
- private $version = '1.3.1';
49
 
50
  /**
51
  * Plugin dir URL
3
  * Plugin Name: Cherry Team Members
4
  * Plugin URI: http://www.templatemonster.com/wordpress-themes.php
5
  * Description: Cherry Team Members plugin allows you to showcase your team and personnel.
6
+ * Version: 1.3.2
7
  * Author: TemplateMonster
8
  * Author URI: http://www.templatemonster.com/
9
  * Text Domain: cherry-team
45
  *
46
  * @var string
47
  */
48
+ private $version = '1.3.2';
49
 
50
  /**
51
  * Plugin dir URL
public/includes/class-cherry-team-shortcode.php CHANGED
@@ -327,10 +327,14 @@ class Cherry_Team_Members_Shortcode {
327
  * @return array
328
  */
329
  public function get_categories() {
330
- return array_merge(
331
- array( '' => esc_html__( 'From All', 'cherry-team' ) ),
332
- cherry_team_members()->utilities->utility->satellite->get_terms_array( 'group', 'slug' )
333
- );
 
 
 
 
334
  }
335
 
336
  /**
327
  * @return array
328
  */
329
  public function get_categories() {
330
+
331
+ $categories = cherry_team_members()->utilities->utility->satellite->get_terms_array( 'group', 'slug' );
332
+
333
+ if ( empty( $categories ) ) {
334
+ $categories = array();
335
+ }
336
+
337
+ return array_merge( array( '' => esc_html__( 'From All', 'cherry-team' ) ), $categories );
338
  }
339
 
340
  /**
public/includes/ext/class-cherry-team-elementor-module.php CHANGED
@@ -182,6 +182,11 @@ class Cherry_Team_Elementor_Widget extends Elementor\Widget_Base {
182
  foreach ( $args as $name => $arg ) {
183
 
184
  if ( empty( $settings[ $name ] ) ) {
 
 
 
 
 
185
  continue;
186
  }
187
 
182
  foreach ( $args as $name => $arg ) {
183
 
184
  if ( empty( $settings[ $name ] ) ) {
185
+
186
+ if ( 'switcher' === $arg['type'] ) {
187
+ $shortcode_atts .= sprintf( ' %1$s="%2$s"', $name, 'false' );
188
+ }
189
+
190
  continue;
191
  }
192
 
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, team, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.5
6
- Tested up to: 4.7.4
7
- Stable tag: 1.3.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -81,6 +81,10 @@ Standard templates can be rewritten in the theme. For that you need to create ch
81
 
82
  == Changelog ==
83
 
 
 
 
 
84
  = 1.3.1 =
85
 
86
  * FIX: Prevent PHP notices in Elementor module
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, team, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.5
6
+ Tested up to: 4.7.5
7
+ Stable tag: 1.3.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 1.3.2 =
85
+
86
+ * FIX: Minor fixes.
87
+
88
  = 1.3.1 =
89
 
90
  * FIX: Prevent PHP notices in Elementor module