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
|
||||
$allowed_options = array(
|
||||
'wp_allstars_simple_setting',
|
||||
'wp_allstars_auto_upload_images',
|
||||
'wp_allstars_max_width',
|
||||
'wp_allstars_max_height',
|
||||
|
@ -114,9 +114,9 @@ class WP_Allstars_Free_Plugins_Manager {
|
||||
url: ajaxurl,
|
||||
type: 'POST',
|
||||
data: {
|
||||
action: 'wp_allstars_load_plugins',
|
||||
action: 'wp_allstars_get_plugins',
|
||||
category: category,
|
||||
nonce: '<?php echo wp_create_nonce('wp_allstars_load_plugins'); ?>'
|
||||
nonce: '<?php echo wp_create_nonce('wp-allstars-nonce'); ?>'
|
||||
},
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
|
Reference in New Issue
Block a user