Absolutely Glamorous Custom Admin - Version 6.9.5

Version Description

  • Improved security
Download this release

Release Info

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

Code changes from version 6.9.4 to 6.9.5

Files changed (2) hide show
  1. plugin.php +14 -7
  2. readme.txt +10 -4
plugin.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
- Plugin Name: Absolutely Glamorous Custom Admin
4
  Plugin URI: https://cusmin.com/agca
5
- Description: All-in-one plugin for WordPress dashboard customization. Change almost everything: admin menu, dashboard, login page, admin bar and much more.
6
  Author: Cusmin
7
- Version: 6.9.4
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com/
@@ -28,7 +28,7 @@ Author URI: https://cusmin.com/
28
  $agca = new AGCA();
29
 
30
  class AGCA{
31
- private $agca_version = "6.9.4";
32
  private $colorizer = "";
33
  private $agca_debug = false;
34
  private $admin_capabilities;
@@ -118,7 +118,10 @@ class AGCA{
118
  //Prevent non-admin users to update sensitive options
119
  //Revert option value to previous
120
  function after_update_option( $option, $old_value, $new_value ){
121
- if(!current_user_can('administrator') &&
 
 
 
122
  in_array($option, [
123
  'agca_dashboard_text_paragraph',
124
  'agca_dashboard_text',
@@ -141,6 +144,10 @@ class AGCA{
141
  return current_user_can('administrator');
142
  }
143
 
 
 
 
 
144
  function agca_customizer_php(){
145
  $this->agca_get_includes();
146
  }
@@ -184,10 +191,10 @@ class AGCA{
184
  }
185
 
186
  function getFieldSecurityProtected(){
187
- if($this->is_wp_admin()){
188
  return '';
189
  }
190
- return '<p style="color: red">(&nbsp;For security reasons, this field is available for editing only to WordPress <b>Administrators</b> group&nbsp;)</p>';
191
  }
192
 
193
  function verifyPostRequest(){
1
  <?php
2
  /*
3
+ 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: 6.9.5
8
  Text Domain: ag-custom-admin
9
  Domain Path: /languages
10
  Author URI: https://cusmin.com/
28
  $agca = new AGCA();
29
 
30
  class AGCA{
31
+ private $agca_version = "6.9.5";
32
  private $colorizer = "";
33
  private $agca_debug = false;
34
  private $admin_capabilities;
118
  //Prevent non-admin users to update sensitive options
119
  //Revert option value to previous
120
  function after_update_option( $option, $old_value, $new_value ){
121
+ if((
122
+ !current_user_can('administrator') ||
123
+ !current_user_can('unfiltered_html')
124
+ ) &&
125
  in_array($option, [
126
  'agca_dashboard_text_paragraph',
127
  'agca_dashboard_text',
144
  return current_user_can('administrator');
145
  }
146
 
147
+ function can_save_unfiltered_html(){
148
+ return current_user_can('unfiltered_html');
149
+ }
150
+
151
  function agca_customizer_php(){
152
  $this->agca_get_includes();
153
  }
191
  }
192
 
193
  function getFieldSecurityProtected(){
194
+ if($this->is_wp_admin() && $this->can_save_unfiltered_html()){
195
  return '';
196
  }
197
+ return '<p style="color: red">(&nbsp;For security reasons, this field is available for editing only to WordPress <b>Administrators</b> with the allowed capability to save unfiltered HTML&nbsp;)</p>';
198
  }
199
 
200
  function verifyPostRequest(){
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: 6.9.4
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
@@ -74,7 +74,7 @@ With this plugin you can easily customize WordPress **admin panel**, **login pag
74
  * Round corners on login boxes
75
  * Hide register and lost password links
76
  * Change hyperlink on register button
77
-
78
  = Admin Menu Options =
79
  * Rename menu and sub-menu items
80
  * Hide menu and sub-menu items
@@ -87,9 +87,9 @@ With this plugin you can easily customize WordPress **admin panel**, **login pag
87
  * Add custom branding image above the admin menu
88
  * Add custom link to branding image
89
  * Change admin menu auto-folding settings
90
-
91
  = Colorizer =
92
- * Change background and text colors on admin and login page
93
  * Change admin menu colors
94
  * Change widget colors
95
 
@@ -159,6 +159,9 @@ If you have the latest WordPress and plugin versions, and you still experience s
159
 
160
  == Change Log ==
161
 
 
 
 
162
  = 6.9.4 =
163
  * Fixed: "Cannot hide Woocommerce Analytics button in the admin menu" issue
164
  * Small text improvements
@@ -174,5 +177,8 @@ If you have the latest WordPress and plugin versions, and you still experience s
174
 
175
  == Upgrade Notice ==
176
 
 
 
 
177
  = 6.9.4 =
178
  * Fixed compatibility issue with Woocommerce in the admin menu
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: 6.9.5
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
74
  * Round corners on login boxes
75
  * Hide register and lost password links
76
  * Change hyperlink on register button
77
+
78
  = Admin Menu Options =
79
  * Rename menu and sub-menu items
80
  * Hide menu and sub-menu items
87
  * Add custom branding image above the admin menu
88
  * Add custom link to branding image
89
  * Change admin menu auto-folding settings
90
+
91
  = Colorizer =
92
+ * Change background and text colors on admin and login page
93
  * Change admin menu colors
94
  * Change widget colors
95
 
159
 
160
  == Change Log ==
161
 
162
+ = 6.9.5 =
163
+ * Improved security
164
+
165
  = 6.9.4 =
166
  * Fixed: "Cannot hide Woocommerce Analytics button in the admin menu" issue
167
  * Small text improvements
177
 
178
  == Upgrade Notice ==
179
 
180
+ = 6.9.5 =
181
+ * Improved security
182
+
183
  = 6.9.4 =
184
  * Fixed compatibility issue with Woocommerce in the admin menu