Fix free plugins tab loading and settings toggle error
This commit is contained in:
@ -107,6 +107,7 @@ class WP_Allstars_Admin_Manager {
|
|||||||
|
|
||||||
// Whitelist of allowed options to update for security
|
// Whitelist of allowed options to update for security
|
||||||
$allowed_options = array(
|
$allowed_options = array(
|
||||||
|
'wp_allstars_simple_setting',
|
||||||
'wp_allstars_auto_upload_images',
|
'wp_allstars_auto_upload_images',
|
||||||
'wp_allstars_max_width',
|
'wp_allstars_max_width',
|
||||||
'wp_allstars_max_height',
|
'wp_allstars_max_height',
|
||||||
|
@ -114,9 +114,9 @@ class WP_Allstars_Free_Plugins_Manager {
|
|||||||
url: ajaxurl,
|
url: ajaxurl,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
action: 'wp_allstars_load_plugins',
|
action: 'wp_allstars_get_plugins',
|
||||||
category: category,
|
category: category,
|
||||||
nonce: '<?php echo wp_create_nonce('wp_allstars_load_plugins'); ?>'
|
nonce: '<?php echo wp_create_nonce('wp-allstars-nonce'); ?>'
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
|
Reference in New Issue
Block a user