Absolutely Glamorous Custom Admin - Version 7.0.1

Version Description

  • Tested up to PHP 8.1
  • Fixed HTML escaping issue for site title in admin bar
  • Fixed issue of not displaying admin bar customizations on front-end
  • Added compatibility support for Ninja Tables plugin
Download this release

Release Info

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

Code changes from version 7.0 to 7.0.1

Files changed (2) hide show
  1. plugin.php +22 -6
  2. readme.txt +10 -1
plugin.php CHANGED
@@ -4,12 +4,12 @@ Plugin Name: Custom Dashboard & Login Page - AGCA
4
  Plugin URI: https://cusmin.com/agca
5
  Description: CHANGE: admin menu, login page, admin bar, dashboard widgets, custom colors, custom CSS & JS, logo & images
6
  Author: Cusmin
7
- Version: 7.0
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com/
11
 
12
- Copyright 2021. Cusmin (email : info@cusmin.com)
13
 
14
  This program is free software: you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ Author URI: https://cusmin.com/
28
  $agca = new AGCA();
29
 
30
  class AGCA{
31
- private $agca_version = "7.0";
32
  private $colorizer = "";
33
  private $agca_debug = false;
34
  private $admin_capabilities;
@@ -70,6 +70,17 @@ class AGCA{
70
  add_action( 'admin_notices', array(&$this, 'agca_check_js_notice') );
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
 
75
  function agca_check_js_notice(){
@@ -193,10 +204,15 @@ class AGCA{
193
  $agcaStyleFileName = get_option('agca_no_style') == true ? 'ag_style_simple' : 'ag_style';
194
  wp_register_style('agca-style', $this->pluginUrl() . 'style/' . $agcaStyleFileName . '.css', array('farbtastic'), $this->agca_version);
195
  wp_enqueue_style( 'agca-style' );
 
 
 
196
 
197
- wp_register_script ( 'agca-script', $this->pluginUrl() . 'script/ag_script.js', array('jquery'), $this->agca_version );
 
 
198
  wp_enqueue_script ( 'agca-script', array('jquery') );
199
- }
200
  }
201
 
202
  function agca_init_session(){
@@ -959,7 +975,7 @@ class AGCA{
959
  jQuery("#wphead #site-heading").css("display","none");
960
  <?php } ?>
961
  <?php if(get_option('agca_custom_site_heading')!=""){ ?>
962
- jQuery("#wp-admin-bar-site-name a:first").text('<?php echo ($this->sanitize_html(strip_tags(get_option('agca_custom_site_heading')))); ?>');
963
 
964
  <?php } ?>
965
  <?php if(get_option('agca_header')==true && $this->context =='admin'){
4
  Plugin URI: https://cusmin.com/agca
5
  Description: CHANGE: admin menu, login page, admin bar, dashboard widgets, custom colors, custom CSS & JS, logo & images
6
  Author: Cusmin
7
+ Version: 7.0.1
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com/
11
 
12
+ Copyright 2022. Cusmin (email : info@cusmin.com)
13
 
14
  This program is free software: you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
28
  $agca = new AGCA();
29
 
30
  class AGCA{
31
+ private $agca_version = "7.0.1";
32
  private $colorizer = "";
33
  private $agca_debug = false;
34
  private $admin_capabilities;
70
  add_action( 'admin_notices', array(&$this, 'agca_check_js_notice') );
71
  }
72
 
73
+ //admin bar on front end
74
+ if(!is_admin() && is_admin_bar_showing()){
75
+ ?>
76
+ <style type="text/css">
77
+ #wpadminbar{
78
+ display: none;
79
+ }
80
+ </style>
81
+ <?php
82
+ $this->agca_enqueue_js();
83
+ }
84
  }
85
 
86
  function agca_check_js_notice(){
204
  $agcaStyleFileName = get_option('agca_no_style') == true ? 'ag_style_simple' : 'ag_style';
205
  wp_register_style('agca-style', $this->pluginUrl() . 'style/' . $agcaStyleFileName . '.css', array('farbtastic'), $this->agca_version);
206
  wp_enqueue_style( 'agca-style' );
207
+ $this->agca_enqueue_js();
208
+ }
209
+ }
210
 
211
+ function agca_enqueue_js(){
212
+ wp_register_script ( 'agca-script', $this->pluginUrl() . 'script/ag_script.js', array('jquery'), $this->agca_version );
213
+ add_action('wp_print_scripts', function () {
214
  wp_enqueue_script ( 'agca-script', array('jquery') );
215
+ }, 2);
216
  }
217
 
218
  function agca_init_session(){
975
  jQuery("#wphead #site-heading").css("display","none");
976
  <?php } ?>
977
  <?php if(get_option('agca_custom_site_heading')!=""){ ?>
978
+ jQuery("#wp-admin-bar-site-name a:first").text('<?php echo ($this->sanitize(strip_tags(get_option('agca_custom_site_heading')))); ?>');
979
 
980
  <?php } ?>
981
  <?php if(get_option('agca_header')==true && $this->context =='admin'){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=agca@cus
4
  Tags: customize dashboard, hide admin bar, customize admin menu, customize login page, hide widgets, admin menu, dashboard, edit admin menu, admin bar, login page, widgets, customize admin
5
  Requires at least: 3.0
6
  Tested up to: 5.8
7
- Stable tag: 7.0
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
@@ -159,6 +159,12 @@ If you have the latest WordPress and plugin versions, and you still experience s
159
 
160
  == Change Log ==
161
 
 
 
 
 
 
 
162
  = 7.0 =
163
  * Improved security
164
  * Code cleanup
@@ -178,6 +184,9 @@ If you have the latest WordPress and plugin versions, and you still experience s
178
 
179
  == Upgrade Notice ==
180
 
 
 
 
181
  = 7.0 =
182
  * Important security update. Security enforcement.
183
 
4
  Tags: customize dashboard, hide admin bar, customize admin menu, customize login page, hide widgets, admin menu, dashboard, edit admin menu, admin bar, login page, widgets, customize admin
5
  Requires at least: 3.0
6
  Tested up to: 5.8
7
+ Stable tag: 7.0.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
159
 
160
  == Change Log ==
161
 
162
+ = 7.0.1 =
163
+ * Tested up to PHP 8.1
164
+ * Fixed HTML escaping issue for site title in admin bar
165
+ * Fixed issue of not displaying admin bar customizations on front-end
166
+ * Added compatibility support for Ninja Tables plugin
167
+
168
  = 7.0 =
169
  * Improved security
170
  * Code cleanup
184
 
185
  == Upgrade Notice ==
186
 
187
+ = 7.0.1 =
188
+ * Fixed bugs and added compatibility with Ninja Tables plugin
189
+
190
  = 7.0 =
191
  * Important security update. Security enforcement.
192