Absolutely Glamorous Custom Admin - Version 6.4.1

Version Description

  • Fixed fatal error
Download this release

Release Info

Developer cusmin
Plugin Icon 128x128 Absolutely Glamorous Custom Admin
Version 6.4.1
Comparing to
See all releases

Code changes from version 6.4 to 6.4.1

Files changed (2) hide show
  1. plugin.php +21 -24
  2. readme.txt +10 -1
plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Absolutely Glamorous Custom Admin
4
  Plugin URI: https://wordpressadminpanel.com/ag-custom-admin/
5
  Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
6
  Author: Cusmin
7
- Version: 6.4
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com
@@ -75,7 +75,7 @@ class AGCA{
75
  /*Initialize properties*/
76
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
77
 
78
- $this->agca_version = "6.4";
79
 
80
  //TODO:upload images programmatically
81
  }
@@ -1149,31 +1149,28 @@ class AGCA{
1149
  }
1150
 
1151
  function wp_admin_bar_my_custom_account_menu( $wp_admin_bar ) {
 
 
 
 
1152
 
1153
- if(empty(get_option('agca_howdy'))){
1154
- return false;
1155
- }
1156
-
1157
- $user_id = get_current_user_id();
1158
- $current_user = wp_get_current_user();
1159
- $profile_url = get_edit_profile_url( $user_id );
1160
 
1161
- if ( 0 != $user_id ) {
1162
- /* Add the "My Account" menu */
1163
- $avatar = get_avatar( $user_id, 28 );
1164
- $howdy = sprintf( __(get_option('agca_howdy').', %1$s'), $current_user->display_name );
1165
- $class = empty( $avatar ) ? '' : 'with-avatar';
1166
-
1167
- $wp_admin_bar->add_menu( array(
1168
- 'id' => 'my-account',
1169
- 'parent' => 'top-secondary',
1170
- 'title' => $howdy . $avatar,
1171
- 'href' => $profile_url,
1172
- 'meta' => array(
1173
- 'class' => $class,
1174
- ),
1175
- ) );
1176
 
 
1177
  }
1178
  }
1179
 
4
  Plugin URI: https://wordpressadminpanel.com/ag-custom-admin/
5
  Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
6
  Author: Cusmin
7
+ Version: 6.4.1
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com
75
  /*Initialize properties*/
76
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
77
 
78
+ $this->agca_version = "6.4.1";
79
 
80
  //TODO:upload images programmatically
81
  }
1149
  }
1150
 
1151
  function wp_admin_bar_my_custom_account_menu( $wp_admin_bar ) {
1152
+ if(get_option('agca_howdy')!=""){
1153
+ $user_id = get_current_user_id();
1154
+ $current_user = wp_get_current_user();
1155
+ $profile_url = get_edit_profile_url( $user_id );
1156
 
1157
+ if ( 0 != $user_id ) {
1158
+ /* Add the "My Account" menu */
1159
+ $avatar = get_avatar( $user_id, 28 );
1160
+ $howdy = sprintf( __(get_option('agca_howdy').', %1$s'), $current_user->display_name );
1161
+ $class = empty( $avatar ) ? '' : 'with-avatar';
 
 
1162
 
1163
+ $wp_admin_bar->add_menu( array(
1164
+ 'id' => 'my-account',
1165
+ 'parent' => 'top-secondary',
1166
+ 'title' => $howdy . $avatar,
1167
+ 'href' => $profile_url,
1168
+ 'meta' => array(
1169
+ 'class' => $class,
1170
+ ),
1171
+ ) );
 
 
 
 
 
 
1172
 
1173
+ }
1174
  }
1175
  }
1176
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=agca@cus
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
  Tested up to: 4.9.5
7
- Stable tag: 6.4
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
@@ -148,6 +148,9 @@ If you have the latest WordPress and plugin versions and you still experience so
148
 
149
  == Change Log ==
150
 
 
 
 
151
  = 6.4 =
152
  * Fixed custom Howdy issue
153
 
@@ -545,6 +548,12 @@ If you have the latest WordPress and plugin versions and you still experience so
545
 
546
  == Upgrade Notice ==
547
 
 
 
 
 
 
 
548
  = 6.3 =
549
  * Fixed custom Howdy for Netherland's WP
550
 
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
  Tested up to: 4.9.5
7
+ Stable tag: 6.4.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
148
 
149
  == Change Log ==
150
 
151
+ = 6.4.1 =
152
+ * Fixed fatal error
153
+
154
  = 6.4 =
155
  * Fixed custom Howdy issue
156
 
548
 
549
  == Upgrade Notice ==
550
 
551
+ = 6.4.1 =
552
+ * Fixed fatal error
553
+
554
+ = 6.4 =
555
+ * Fixed custom Howdy issue
556
+
557
  = 6.3 =
558
  * Fixed custom Howdy for Netherland's WP
559