Version Description
- Resolved Colorizer backround color issue in WP 4.6
- Removed AGCA script from admin bar front end when user is not logged in
- Removed WP version from AGCA front end script
- Login page compatibility with WP Cerber plugin
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 5.6.5 |
Comparing to | |
See all releases |
Code changes from version 5.6.4 to 5.6.5
- plugin.php +11 -10
- readme.txt +10 -1
- script/ag_script.js +7 -10
plugin.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
|
|
4 |
Plugin URI: http://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: WAP
|
7 |
-
Version: 5.6.
|
8 |
Text Domain: ag-custom-admin
|
9 |
Domain Path: /languages
|
10 |
Author URI: http://www.wordpressadminpanel.com/
|
@@ -53,6 +53,7 @@ class AGCA{
|
|
53 |
}
|
54 |
|
55 |
add_action('admin_init', array(&$this,'admin_init'));
|
|
|
56 |
add_action('admin_head', array(&$this,'print_admin_css'));
|
57 |
add_action('login_head', array(&$this,'print_login_head'));
|
58 |
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
@@ -72,7 +73,7 @@ class AGCA{
|
|
72 |
/*Initialize properties*/
|
73 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
74 |
|
75 |
-
$this->agca_version = "5.6.
|
76 |
|
77 |
//TODO:upload images programmatically
|
78 |
}
|
@@ -110,6 +111,10 @@ class AGCA{
|
|
110 |
$this->agca_init_session();
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
113 |
function agca_init_session(){
|
114 |
if (!session_id())
|
115 |
session_start();
|
@@ -461,7 +466,7 @@ class AGCA{
|
|
461 |
if(defined('WP_ADMIN') && WP_ADMIN == 1){
|
462 |
$isAdmin = true;
|
463 |
}
|
464 |
-
if(
|
465 |
$this->agca_enqueue_scripts();
|
466 |
}
|
467 |
}
|
@@ -914,16 +919,12 @@ class AGCA{
|
|
914 |
</script>
|
915 |
<?php
|
916 |
}
|
917 |
-
if(get_option('agca_admin_bar_frontend')!=true){
|
918 |
|
919 |
$this->context = "page";
|
920 |
-
|
921 |
-
|
922 |
?>
|
923 |
-
|
924 |
-
|
925 |
<script type="text/javascript">
|
926 |
-
var wpversion = "<?php echo $wpversion; ?>";
|
927 |
var agca_version = "<?php echo $this->agca_version; ?>";
|
928 |
var agca_debug = <?php echo ($this->agca_debug)?"true":"false"; ?>;
|
929 |
var jQueryScriptOutputted = false;
|
@@ -2001,7 +2002,7 @@ class AGCA{
|
|
2001 |
|
2002 |
$this->context = "login";
|
2003 |
$this->error_check();
|
2004 |
-
|
2005 |
|
2006 |
?>
|
2007 |
<script type="text/javascript">
|
4 |
Plugin URI: http://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: WAP
|
7 |
+
Version: 5.6.5
|
8 |
Text Domain: ag-custom-admin
|
9 |
Domain Path: /languages
|
10 |
Author URI: http://www.wordpressadminpanel.com/
|
53 |
}
|
54 |
|
55 |
add_action('admin_init', array(&$this,'admin_init'));
|
56 |
+
add_action('login_init', array(&$this,'login_init'));
|
57 |
add_action('admin_head', array(&$this,'print_admin_css'));
|
58 |
add_action('login_head', array(&$this,'print_login_head'));
|
59 |
add_action('admin_menu', array(&$this,'agca_create_menu'));
|
73 |
/*Initialize properties*/
|
74 |
$this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
|
75 |
|
76 |
+
$this->agca_version = "5.6.5";
|
77 |
|
78 |
//TODO:upload images programmatically
|
79 |
}
|
111 |
$this->agca_init_session();
|
112 |
}
|
113 |
|
114 |
+
function login_init(){
|
115 |
+
$this->agca_enqueue_scripts();
|
116 |
+
}
|
117 |
+
|
118 |
function agca_init_session(){
|
119 |
if (!session_id())
|
120 |
session_start();
|
466 |
if(defined('WP_ADMIN') && WP_ADMIN == 1){
|
467 |
$isAdmin = true;
|
468 |
}
|
469 |
+
if($isAdmin || $this->WPSPluginIsLoginPage()){
|
470 |
$this->agca_enqueue_scripts();
|
471 |
}
|
472 |
}
|
919 |
</script>
|
920 |
<?php
|
921 |
}
|
922 |
+
if(get_option('agca_admin_bar_frontend')!=true && is_user_logged_in()){
|
923 |
|
924 |
$this->context = "page";
|
925 |
+
//$wpversion = $this->get_wp_version();
|
|
|
926 |
?>
|
|
|
|
|
927 |
<script type="text/javascript">
|
|
|
928 |
var agca_version = "<?php echo $this->agca_version; ?>";
|
929 |
var agca_debug = <?php echo ($this->agca_debug)?"true":"false"; ?>;
|
930 |
var jQueryScriptOutputted = false;
|
2002 |
|
2003 |
$this->context = "login";
|
2004 |
$this->error_check();
|
2005 |
+
//$wpversion = $this->get_wp_version();
|
2006 |
|
2007 |
?>
|
2008 |
<script type="text/javascript">
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressadminpanel.com/ag-custom-admin/
|
|
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.6
|
7 |
-
Stable tag: 5.6.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl.txt
|
10 |
|
@@ -152,6 +152,12 @@ If you have the latest WordPress and plugin versions and you still experience so
|
|
152 |
|
153 |
== Change Log ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 5.6.4 =
|
156 |
* Added option to remove Customize button from admin bar on front end
|
157 |
* Re-organized admin hooks
|
@@ -506,6 +512,9 @@ If you have the latest WordPress and plugin versions and you still experience so
|
|
506 |
|
507 |
== Upgrade Notice ==
|
508 |
|
|
|
|
|
|
|
509 |
= 5.6.4 =
|
510 |
* Added new setting. Improvements.
|
511 |
|
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.6
|
7 |
+
Stable tag: 5.6.5
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl.txt
|
10 |
|
152 |
|
153 |
== Change Log ==
|
154 |
|
155 |
+
= 5.6.5 =
|
156 |
+
* Resolved Colorizer backround color issue in WP 4.6
|
157 |
+
* Removed AGCA script from admin bar front end when user is not logged in
|
158 |
+
* Removed WP version from AGCA front end script
|
159 |
+
* Login page compatibility with WP Cerber plugin
|
160 |
+
|
161 |
= 5.6.4 =
|
162 |
* Added option to remove Customize button from admin bar on front end
|
163 |
* Re-organized admin hooks
|
512 |
|
513 |
== Upgrade Notice ==
|
514 |
|
515 |
+
= 5.6.5 =
|
516 |
+
* Compatibility improvements
|
517 |
+
|
518 |
= 5.6.4 =
|
519 |
* Added new setting. Improvements.
|
520 |
|
script/ag_script.js
CHANGED
@@ -582,7 +582,7 @@ function updateTargetColor(id, color){
|
|
582 |
switch(id)
|
583 |
{
|
584 |
case 'color_background':
|
585 |
-
jQuery('html, .wp-dialog').css({
|
586 |
'background-color':color
|
587 |
});
|
588 |
break;
|
@@ -600,15 +600,12 @@ function updateTargetColor(id, color){
|
|
600 |
//wp > 3.3
|
601 |
jQuery('#wpadminbar').css({'background':color});
|
602 |
jQuery('#wpadminbar .ab-top-menu').css({'background':color});
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
});
|
610 |
-
jQuery("#backtoblog").attr("style","");
|
611 |
-
}
|
612 |
break;
|
613 |
case 'color_admin_menu_top_button_background':
|
614 |
jQuery('#adminmenu a.menu-top').css({
|
582 |
switch(id)
|
583 |
{
|
584 |
case 'color_background':
|
585 |
+
jQuery('html, .wp-dialog, #wpwrap').css({
|
586 |
'background-color':color
|
587 |
});
|
588 |
break;
|
600 |
//wp > 3.3
|
601 |
jQuery('#wpadminbar').css({'background':color});
|
602 |
jQuery('#wpadminbar .ab-top-menu').css({'background':color});
|
603 |
+
jQuery('#wphead').css({
|
604 |
+
'margin':'0',
|
605 |
+
'margin-left':'-14px',
|
606 |
+
'padding-left':'15px'
|
607 |
+
});
|
608 |
+
jQuery("#backtoblog").attr("style","");
|
|
|
|
|
|
|
609 |
break;
|
610 |
case 'color_admin_menu_top_button_background':
|
611 |
jQuery('#adminmenu a.menu-top').css({
|