Our Team Showcase - Version 4.1.1

Version Description

  1. fix bug with error when saving posts
  2. fix php error for un-install
Download this release

Release Info

Developer smartcat
Plugin Icon 128x128 Our Team Showcase
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

constants.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  namespace ots;
4
 
5
- const VERSION = '4.1.0';
6
 
7
 
8
  interface Options {
2
 
3
  namespace ots;
4
 
5
+ const VERSION = '4.1.1';
6
 
7
 
8
  interface Options {
includes/team_member-post-type.php CHANGED
@@ -207,8 +207,9 @@ add_action( 'manage_team_member_posts_custom_column', 'ots\do_team_member_custom
207
  */
208
  function single_member_content( $content ) {
209
 
 
210
  if ( is_single() && get_post_type() == 'team_member' &&
211
- get_option( Options::SINGLE_TEMPLATE ) == 'standard' ) : ob_start(); ?>
212
 
213
  <div id="sc_our_team">
214
 
@@ -266,11 +267,11 @@ function single_member_content( $content ) {
266
 
267
  </div>
268
 
269
- <?php $content = ob_get_clean(); ?>
270
 
271
- <?php endif; ?>
272
 
273
- <?php return $content;
274
 
275
  }
276
 
207
  */
208
  function single_member_content( $content ) {
209
 
210
+ // Use {} to prevent whitespace leaks after headers have been sent
211
  if ( is_single() && get_post_type() == 'team_member' &&
212
+ get_option( Options::SINGLE_TEMPLATE ) == 'standard' ) { ob_start(); ?>
213
 
214
  <div id="sc_our_team">
215
 
267
 
268
  </div>
269
 
270
+ <?php $content = ob_get_clean();
271
 
272
+ }
273
 
274
+ return $content;
275
 
276
  }
277
 
our-team-showcase.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Our Team Showcase
4
  * Plugin URI: https://smartcatdesign.net/downloads/our-team-showcase/
5
  * Description: Display your team members in a very attractive way as a widget or page with the shortcode [our-team]
6
- * Version: 4.1.0
7
  * Author: Smartcat
8
  * Author URI: https://smartcatdesign.net
9
  * License: GPL2
3
  * Plugin Name: Our Team Showcase
4
  * Plugin URI: https://smartcatdesign.net/downloads/our-team-showcase/
5
  * Description: Display your team members in a very attractive way as a widget or page with the shortcode [our-team]
6
+ * Version: 4.1.1
7
  * Author: Smartcat
8
  * Author URI: https://smartcatdesign.net
9
  * License: GPL2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://smartcatdesign.net/downloads/our-team-showcase/
4
  Tags: team, staff, directory, employees, widget, shortcode, members, carousel, honeycomb, stack, grid, custom, template, social, profile, custom post type, portfolio, profile,meet team, skills, cv,v-card, portal
5
  Requires at least: 4.6
6
  Tested up to: 4.8.1
7
- Stable tag: 4.0.2
8
  License: GPLv2 or later
9
 
10
  The best way to display your employees, team members, or any type of list. Multiple appealing templates,SEO friendly, re-order functionality.
@@ -88,6 +88,10 @@ Team Member Details & Icons:
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = 4.1.0 =
92
  1. Added a new field for additional social network
93
  2. Shortcode now supports multiple groups
4
  Tags: team, staff, directory, employees, widget, shortcode, members, carousel, honeycomb, stack, grid, custom, template, social, profile, custom post type, portfolio, profile,meet team, skills, cv,v-card, portal
5
  Requires at least: 4.6
6
  Tested up to: 4.8.1
7
+ Stable tag: 4.1.0
8
  License: GPLv2 or later
9
 
10
  The best way to display your employees, team members, or any type of list. Multiple appealing templates,SEO friendly, re-order functionality.
88
 
89
  == Changelog ==
90
 
91
+ = 4.1.1 =
92
+ 1. fix bug with error when saving posts
93
+ 2. fix php error for un-install
94
+
95
  = 4.1.0 =
96
  1. Added a new field for additional social network
97
  2. Shortcode now supports multiple groups
uninstall.php CHANGED
@@ -44,7 +44,7 @@ if ( get_option( Options::NUKE ) == 'on' ) {
44
 
45
 
46
  // Delete all plugin settings
47
- $options = new \ReflectionClass( Options::class );
48
 
49
  foreach( $options->getConstants() as $option ) {
50
  delete_option( $option );
44
 
45
 
46
  // Delete all plugin settings
47
+ $options = new \ReflectionClass( '\ots\Options' );
48
 
49
  foreach( $options->getConstants() as $option ) {
50
  delete_option( $option );