Absolutely Glamorous Custom Admin - Version 1.5.4.1

Version Description

  • Fixed new post blank page issue
Download this release

Release Info

Developer argonius
Plugin Icon 128x128 Absolutely Glamorous Custom Admin
Version 1.5.4.1
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.4.1

Files changed (2) hide show
  1. plugin.php +15 -7
  2. readme.txt +7 -1
plugin.php CHANGED
@@ -112,8 +112,8 @@ class AGCA{
112
  }
113
 
114
  function checkPOST(){
115
- $this->checkIfUserAdmin();
116
  if(isset($_POST['_agca_save_template'])){
 
117
  //print_r($_POST);
118
  $data = $_POST['templates_data'];
119
  $parts = explode("|||",$data);
@@ -150,7 +150,8 @@ class AGCA{
150
 
151
  $_POST = array();
152
 
153
- }else if(isset($_POST['_agca_templates_session'])){
 
154
  $this->agcaAdminSession();
155
  if($_POST['template'] !="")
156
  $_SESSION["AGCA"]["Templates"][$_POST['template']] = array("license"=>$_POST['license']);
@@ -158,7 +159,8 @@ class AGCA{
158
  print_r($_SESSION);
159
  echo "_agca_templates_session:OK";
160
  exit;
161
- }else if(isset($_POST['_agca_templates_session_remove_license'])){
 
162
  $this->agcaAdminSession();
163
  if($_POST['template'] !="")
164
  $_SESSION["AGCA"]["Templates"][$_POST['template']] = null;
@@ -166,6 +168,7 @@ class AGCA{
166
  echo "_agca_templates_session_remove_license:OK";
167
  exit;
168
  }else if(isset($_POST['_agca_get_templates'])){
 
169
  $templates = get_option( 'agca_templates' );
170
  if($templates == "") $templates = array();
171
  $results = array();
@@ -175,11 +178,13 @@ class AGCA{
175
  echo json_encode($results);
176
  exit;
177
  }else if(isset($_POST['_agca_activate_template'])){
 
178
  update_option('agca_selected_template', $_POST['_agca_activate_template']);
179
  $_POST = array();
180
  //unset($_POST);
181
  exit;
182
  }else if(isset($_POST['_agca_template_settings'])){
 
183
  $settings = $_POST['_agca_template_settings'];
184
 
185
  $templates = get_option( 'agca_templates' );
@@ -194,7 +199,8 @@ class AGCA{
194
  $_POST = array();
195
  //print_r($templates);
196
  exit;
197
- }else if(isset($_POST['_agca_upload_image'])){
 
198
  function my_sideload_image() {
199
  $remoteurl = $_POST['_agca_upload_image'];
200
  $file = media_sideload_image( $remoteurl, 0 ,"AG Custom Admin Template Image (do not delete)");
@@ -205,7 +211,8 @@ class AGCA{
205
  }
206
  add_action( 'admin_init', 'my_sideload_image' );
207
 
208
- }else if(isset($_POST['_agca_remove_template_images'])){
 
209
  $this->delete_template_images($_POST['_agca_remove_template_images']);
210
  exit;
211
  }
@@ -475,8 +482,8 @@ class AGCA{
475
 
476
 
477
  if(!empty($_POST)){
478
- $this->checkIfUserAdmin();
479
- if(isset($_POST['_agca_import_settings']) && $_POST['_agca_import_settings']=="true"){
480
  if(isset($_FILES) && isset($_FILES['settings_import_file']) ){
481
  if($_FILES["settings_import_file"]["error"] > 0){
482
  }else{
@@ -495,6 +502,7 @@ class AGCA{
495
  }
496
  }
497
  }else if(isset($_POST['_agca_export_settings']) && $_POST['_agca_export_settings']=="true"){
 
498
  $this->exportSettings();
499
  }
500
  }
112
  }
113
 
114
  function checkPOST(){
 
115
  if(isset($_POST['_agca_save_template'])){
116
+ $this->checkIfUserAdmin();
117
  //print_r($_POST);
118
  $data = $_POST['templates_data'];
119
  $parts = explode("|||",$data);
150
 
151
  $_POST = array();
152
 
153
+ }else if(isset($_POST['_agca_templates_session'])){
154
+ $this->checkIfUserAdmin();
155
  $this->agcaAdminSession();
156
  if($_POST['template'] !="")
157
  $_SESSION["AGCA"]["Templates"][$_POST['template']] = array("license"=>$_POST['license']);
159
  print_r($_SESSION);
160
  echo "_agca_templates_session:OK";
161
  exit;
162
+ }else if(isset($_POST['_agca_templates_session_remove_license'])){
163
+ $this->checkIfUserAdmin();
164
  $this->agcaAdminSession();
165
  if($_POST['template'] !="")
166
  $_SESSION["AGCA"]["Templates"][$_POST['template']] = null;
168
  echo "_agca_templates_session_remove_license:OK";
169
  exit;
170
  }else if(isset($_POST['_agca_get_templates'])){
171
+ $this->checkIfUserAdmin();
172
  $templates = get_option( 'agca_templates' );
173
  if($templates == "") $templates = array();
174
  $results = array();
178
  echo json_encode($results);
179
  exit;
180
  }else if(isset($_POST['_agca_activate_template'])){
181
+ $this->checkIfUserAdmin();
182
  update_option('agca_selected_template', $_POST['_agca_activate_template']);
183
  $_POST = array();
184
  //unset($_POST);
185
  exit;
186
  }else if(isset($_POST['_agca_template_settings'])){
187
+ $this->checkIfUserAdmin();
188
  $settings = $_POST['_agca_template_settings'];
189
 
190
  $templates = get_option( 'agca_templates' );
199
  $_POST = array();
200
  //print_r($templates);
201
  exit;
202
+ }else if(isset($_POST['_agca_upload_image'])){
203
+ $this->checkIfUserAdmin();
204
  function my_sideload_image() {
205
  $remoteurl = $_POST['_agca_upload_image'];
206
  $file = media_sideload_image( $remoteurl, 0 ,"AG Custom Admin Template Image (do not delete)");
211
  }
212
  add_action( 'admin_init', 'my_sideload_image' );
213
 
214
+ }else if(isset($_POST['_agca_remove_template_images'])){
215
+ $this->checkIfUserAdmin();
216
  $this->delete_template_images($_POST['_agca_remove_template_images']);
217
  exit;
218
  }
482
 
483
 
484
  if(!empty($_POST)){
485
+ if(isset($_POST['_agca_import_settings']) && $_POST['_agca_import_settings']=="true"){
486
+ $this->checkIfUserAdmin();
487
  if(isset($_FILES) && isset($_FILES['settings_import_file']) ){
488
  if($_FILES["settings_import_file"]["error"] > 0){
489
  }else{
502
  }
503
  }
504
  }else if(isset($_POST['_agca_export_settings']) && $_POST['_agca_export_settings']=="true"){
505
+ $this->checkIfUserAdmin();
506
  $this->exportSettings();
507
  }
508
  }
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.4.2
7
- Stable tag: 1.5.2
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
@@ -155,6 +155,9 @@ If you have the latest WordPress and plugin versions and you still experience so
155
 
156
  == Change Log ==
157
 
 
 
 
158
  = 1.5.4 =
159
  * Patched security issues
160
  * Added support for custom CSS on public pages
@@ -467,6 +470,9 @@ If you have the latest WordPress and plugin versions and you still experience so
467
 
468
  == Upgrade Notice ==
469
 
 
 
 
470
  = 1.5.4 =
471
  * Fixed several very important issues. Highly recommended upgrade.
472
 
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.4.2
7
+ Stable tag: 1.5.4.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl.txt
10
 
155
 
156
  == Change Log ==
157
 
158
+ = 1.5.4.1 =
159
+ * Fixed new post blank page issue
160
+
161
  = 1.5.4 =
162
  * Patched security issues
163
  * Added support for custom CSS on public pages
470
 
471
  == Upgrade Notice ==
472
 
473
+ = 1.5.4.1 =
474
+ * Fixed new post blank page issue.
475
+
476
  = 1.5.4 =
477
  * Fixed several very important issues. Highly recommended upgrade.
478