Simple Author Box - Version 2.47

Version Description

  • 2022-04-13
  • Fixed author box showing on all post types in some cases
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Simple Author Box
Version 2.47
Comparing to
See all releases

Code changes from version 2.46 to 2.47

Files changed (3) hide show
  1. inc/functions.php +1 -1
  2. readme.txt +2 -2
  3. simple-author-box.php +1 -1
inc/functions.php CHANGED
@@ -13,7 +13,7 @@ if ( ! function_exists( 'wpsabox_author_box' ) ) {
13
 
14
  function wpsabox_author_box( $saboxmeta = null, $user_id = null) {
15
  global $post;
16
- $show = ( is_single() && $post->post_type == 'post' || is_author() || (is_archive() && 1 != $this->options['sab_hide_on_archive']) );
17
 
18
  /**
19
  * Hook: sabox_check_if_show.
13
 
14
  function wpsabox_author_box( $saboxmeta = null, $user_id = null) {
15
  global $post;
16
+ $show = (is_single() && isset($post->post_type) && $post->post_type == 'post') || is_author() || (is_archive() && 1 != $this->options['sab_hide_on_archive']);
17
 
18
  /**
19
  * Hook: sabox_check_if_show.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: author box, responsive author box, author profile fields, author social ic
4
  Requires at least: 4.6
5
  Requires PHP: 5.6
6
  Tested up to: 5.9
7
- Stable tag: 2.46
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -48,7 +48,7 @@ Add a responsive author box with social icons to any post. Great author box for
48
 
49
 
50
  == Changelog ==
51
- = 2.46 =
52
  * 2022-04-13
53
  * Fixed author box showing on all post types in some cases
54
 
4
  Requires at least: 4.6
5
  Requires PHP: 5.6
6
  Tested up to: 5.9
7
+ Stable tag: 2.47
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
48
 
49
 
50
  == Changelog ==
51
+ = 2.47 =
52
  * 2022-04-13
53
  * Fixed author box showing on all post types in some cases
54
 
simple-author-box.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Simple Author Box
4
  * Plugin URI: https://wpauthorbox.com/
5
  * Description: Adds a responsive author box with social icons on any post.
6
- * Version: 2.46
7
  * Author: WebFactory Ltd
8
  * Author URI: https://www.webfactoryltd.com/
9
  * Requires: 4.6
3
  * Plugin Name: Simple Author Box
4
  * Plugin URI: https://wpauthorbox.com/
5
  * Description: Adds a responsive author box with social icons on any post.
6
+ * Version: 2.47
7
  * Author: WebFactory Ltd
8
  * Author URI: https://www.webfactoryltd.com/
9
  * Requires: 4.6