Fix free plugins tab loading and settings toggle error

This commit is contained in:
Marcus Quinn
2025-03-24 19:59:15 +00:00
parent f7fb0c6545
commit 19e6455abb
2 changed files with 3 additions and 2 deletions

View File

@ -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',

View File

@ -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) {