Version Description
- Improved security
- Small updates
- Updated dynamic.php script
Download this release
Release Info
Developer | cusmin |
Plugin | Absolutely Glamorous Custom Admin |
Version | 6.5.5 |
Comparing to | |
See all releases |
Code changes from version 6.5.4 to 6.5.5
- plugin.php +4 -4
- readme.txt +11 -2
- require/dynamic.php +21 -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.5.
|
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.5.
|
79 |
}
|
80 |
|
81 |
function load_plugin_textdomain() {
|
@@ -2282,7 +2282,7 @@ class AGCA{
|
|
2282 |
<label title="<?php _e('Choose which WordPress capability will be used to distinguish AGCA admin users from other users.</br>AGCA admin users have access to AGCA settings. AGCA administrators can be excluded from customizations if that option is checked', 'ag-custom-admin'); ?>" for="agca_admin_capability"><?php _e('AGCA admin capability', 'ag-custom-admin'); ?>:</label>
|
2283 |
</th>
|
2284 |
<td><?php echo $this->admin_capabilities; ?> <i>(<?php _e('default: <strong>edit_dashboard</strong>', 'ag-custom-admin'); ?>)</i>
|
2285 |
-
<p style="margin-left:5px;"><i><?php _e('Find more information about', 'ag-custom-admin'); ?> <a href="https://
|
2286 |
</td>
|
2287 |
<td>
|
2288 |
</td>
|
@@ -3036,7 +3036,7 @@ class AGCA{
|
|
3036 |
</div>
|
3037 |
<?php $this->show_save_button(); ?>
|
3038 |
</form>
|
3039 |
-
<form id="agca_templates_form" name="agca_templates_form" action="<?php echo get_site_url().$_SERVER['PHP_SELF'];?>?page=ag-custom-admin/plugin.php" method="post">
|
3040 |
<?php wp_nonce_field('agca_form','_agca_token'); ?>
|
3041 |
<input type="hidden" name="_agca_save_template" value="true" />
|
3042 |
<input type="hidden" id="templates_data" name="templates_data" value="" />
|
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.5.5
|
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.5.5";
|
79 |
}
|
80 |
|
81 |
function load_plugin_textdomain() {
|
2282 |
<label title="<?php _e('Choose which WordPress capability will be used to distinguish AGCA admin users from other users.</br>AGCA admin users have access to AGCA settings. AGCA administrators can be excluded from customizations if that option is checked', 'ag-custom-admin'); ?>" for="agca_admin_capability"><?php _e('AGCA admin capability', 'ag-custom-admin'); ?>:</label>
|
2283 |
</th>
|
2284 |
<td><?php echo $this->admin_capabilities; ?> <i>(<?php _e('default: <strong>edit_dashboard</strong>', 'ag-custom-admin'); ?>)</i>
|
2285 |
+
<p style="margin-left:5px;"><i><?php _e('Find more information about', 'ag-custom-admin'); ?> <a href="https://wordpress.org/support/article/roles-and-capabilities/" target="_blank"><?php _e('WordPress capabilities', 'ag-custom-admin'); ?></a></i></p>
|
2286 |
</td>
|
2287 |
<td>
|
2288 |
</td>
|
3036 |
</div>
|
3037 |
<?php $this->show_save_button(); ?>
|
3038 |
</form>
|
3039 |
+
<form id="agca_templates_form" name="agca_templates_form" action="<?php echo htmlentities(get_site_url().$_SERVER['PHP_SELF']);?>?page=ag-custom-admin/plugin.php" method="post">
|
3040 |
<?php wp_nonce_field('agca_form','_agca_token'); ?>
|
3041 |
<input type="hidden" name="_agca_save_template" value="true" />
|
3042 |
<input type="hidden" id="templates_data" name="templates_data" value="" />
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: cusmin
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=agca@cusmin.com&item_name=Support+for+AGCA+Development
|
4 |
Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 6.5.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl.txt
|
10 |
|
@@ -148,6 +148,11 @@ If you have the latest WordPress and plugin versions and you still experience so
|
|
148 |
|
149 |
== Change Log ==
|
150 |
|
|
|
|
|
|
|
|
|
|
|
151 |
= 6.5.4 =
|
152 |
* Compatibility w/ 5.3.2
|
153 |
|
@@ -563,6 +568,10 @@ If you have the latest WordPress and plugin versions and you still experience so
|
|
563 |
|
564 |
== Upgrade Notice ==
|
565 |
|
|
|
|
|
|
|
|
|
566 |
= 6.5.4 =
|
567 |
* Compatibility w/ 5.3.2
|
568 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=agca@cusmin.com&item_name=Support+for+AGCA+Development
|
4 |
Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.4
|
7 |
+
Stable tag: 6.5.5
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl.txt
|
10 |
|
148 |
|
149 |
== Change Log ==
|
150 |
|
151 |
+
= 6.5.5 =
|
152 |
+
* Improved security
|
153 |
+
* Small updates
|
154 |
+
* Updated dynamic.php script
|
155 |
+
|
156 |
= 6.5.4 =
|
157 |
* Compatibility w/ 5.3.2
|
158 |
|
568 |
|
569 |
== Upgrade Notice ==
|
570 |
|
571 |
+
= 6.5.5 =
|
572 |
+
* Improved security
|
573 |
+
* Small updates
|
574 |
+
|
575 |
= 6.5.4 =
|
576 |
* Compatibility w/ 5.3.2
|
577 |
|
require/dynamic.php
CHANGED
@@ -1,5 +1,25 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
$themes = get_option('agca_templates');
|
5 |
$selectedTheme = get_option('agca_selected_template');
|
1 |
<?php
|
2 |
+
|
3 |
+
// If using the default WordPress file structure
|
4 |
+
if (file_exists('../../../../wp-load.php')) {
|
5 |
+
// Make WordPress functions and methods available
|
6 |
+
require '../../../../wp-load.php';
|
7 |
+
|
8 |
+
// If using alternative WordPress file structure like Roots' Bedrock
|
9 |
+
} else {
|
10 |
+
// WP's constant ABSPATH is not available, so use $_SERVER['DOCUMENT_ROOT'] to get the web root
|
11 |
+
$directory = new RecursiveDirectoryIterator($_SERVER['DOCUMENT_ROOT']);
|
12 |
+
|
13 |
+
// Recursively search web root for wp-load.php
|
14 |
+
foreach (new RecursiveIteratorIterator($directory) as $file) {
|
15 |
+
// wp-load.php found, require and break loop
|
16 |
+
if ($file->getFilename() === 'wp-load.php') {
|
17 |
+
// Make WordPress functions and methods available
|
18 |
+
require $file->getPathname();
|
19 |
+
break;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
23 |
|
24 |
$themes = get_option('agca_templates');
|
25 |
$selectedTheme = get_option('agca_selected_template');
|