Simple Author Box - Version 2.2.1

Version Description

Download this release

Release Info

Developer machothemes
Plugin Icon 128x128 Simple Author Box
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

assets/css/sabox.min.css CHANGED
@@ -1 +1 @@
1
- #adminmenu #toplevel_page_simple-author-box-options .wp-menu-image img{height:18px;padding-top:8px}#adminmenu #toplevel_page_simple-author-box-options.current .wp-menu-image img{opacity:1}img.sab-custom-avatar{max-width:96px;max-height:96px}
1
+ #adminmenu #toplevel_page_simple-author-box-options .wp-menu-image img{height:18px;padding-top:8px}#adminmenu #toplevel_page_simple-author-box-options.current .wp-menu-image img{opacity:1}img.sab-custom-avatar{height: auto;}
inc/class-simple-author-box-helper.php CHANGED
@@ -1044,5 +1044,4 @@ class Simple_Author_Box_Helper {
1044
 
1045
  return apply_filters( 'sabox_inline_css', $style );
1046
  }
1047
-
1048
  }
1044
 
1045
  return apply_filters( 'sabox_inline_css', $style );
1046
  }
 
1047
  }
inc/class-simple-author-box-previewer.php CHANGED
@@ -275,5 +275,4 @@ class Simple_Author_Box_Previewer {
275
  return $style;
276
 
277
  }
278
-
279
  }
275
  return $style;
276
 
277
  }
 
278
  }
inc/class-simple-author-box-social.php CHANGED
@@ -445,5 +445,4 @@ class Simple_Author_Box_Social {
445
  }
446
 
447
  }
448
-
449
  }
445
  }
446
 
447
  }
 
448
  }
inc/class-simple-author-box.php CHANGED
@@ -386,6 +386,10 @@ class Simple_Author_Box {
386
 
387
  public function check_if_show_archive() {
388
 
 
 
 
 
389
  if ( 1 == $this->options['sab_hide_on_archive'] && ! is_single() ) {
390
  return false;
391
  }
386
 
387
  public function check_if_show_archive() {
388
 
389
+ if ( ! is_single() && ! is_author() && ! is_archive() ) {
390
+ return false;
391
+ }
392
+
393
  if ( 1 == $this->options['sab_hide_on_archive'] && ! is_single() ) {
394
  return false;
395
  }
inc/functions.php CHANGED
@@ -87,4 +87,4 @@ function sab_user_social_notice() {
87
  }
88
  }
89
 
90
- add_action( 'admin_notices', 'sab_user_social_notice' );
87
  }
88
  }
89
 
90
+ add_action( 'admin_notices', 'sab_user_social_notice' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: machothemes, silkalns
3
  Tags: author box, responsive author box, author profile fields, author social icons, profile fields, author bio, author description, author profile, user profile, post author, rtl author box, amp, accelerated mobile pages
4
  Requires at least: 4.6
5
  Requires PHP: 5.6
6
- Stable tag: 2.2.0
7
  Tested up to: 5.0
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -120,6 +120,9 @@ Or you can give back by recommending this amazing plugin to your friends!
120
 
121
  == Changelog ==
122
 
 
 
 
123
  = 2.2.0 =
124
  * Added option to show all authors with our shortcode
125
  * Added option to disable the author box on archieve pages.
3
  Tags: author box, responsive author box, author profile fields, author social icons, profile fields, author bio, author description, author profile, user profile, post author, rtl author box, amp, accelerated mobile pages
4
  Requires at least: 4.6
5
  Requires PHP: 5.6
6
+ Stable tag: 2.2.1
7
  Tested up to: 5.0
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
120
 
121
  == Changelog ==
122
 
123
+ = 2.2.0 =
124
+ * Fixed author box appearing on every page.
125
+
126
  = 2.2.0 =
127
  * Added option to show all authors with our shortcode
128
  * Added option to disable the author box on archieve pages.
simple-author-box.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Simple Author Box
4
  * Plugin URI: http://wordpress.org/plugins/simple-author-box/
5
  * Description: Adds a responsive author box with social icons on your posts.
6
- * Version: 2.2.0
7
  * Author: Macho Themes
8
  * Author URI: https://www.machothemes.com/
9
  * License: GPLv3
@@ -30,7 +30,7 @@
30
  define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
31
  define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
32
  define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
33
- define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.2.0' );
34
  define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
35
 
36
  require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
3
  * Plugin Name: Simple Author Box
4
  * Plugin URI: http://wordpress.org/plugins/simple-author-box/
5
  * Description: Adds a responsive author box with social icons on your posts.
6
+ * Version: 2.2.1
7
  * Author: Macho Themes
8
  * Author URI: https://www.machothemes.com/
9
  * License: GPLv3
30
  define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
31
  define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
32
  define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
33
+ define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.2.1' );
34
  define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
35
 
36
  require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
template/template-sab.php CHANGED
@@ -130,4 +130,5 @@ if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no
130
  } // end of social icons
131
  echo '</div>'; // end of saboxplugin-wrap div
132
  }
133
- }
 
130
  } // end of social icons
131
  echo '</div>'; // end of saboxplugin-wrap div
132
  }
133
+ }
134
+