Fix expandable panel clickability, notification alignment, and AJAX nonce issues

This commit is contained in:
Marcus Quinn
2025-03-16 04:00:48 +00:00
parent bca58a050b
commit 330cacb0be
2 changed files with 16 additions and 8 deletions

View File

@ -29,9 +29,9 @@ jQuery(document).ready(function($) {
url: ajaxurl,
type: 'POST',
data: {
action: 'wp_allstars_update_option',
option: option,
value: value,
action: 'wp_allstars_update_option',
option: option,
value: value,
_wpnonce: wpAllstars.nonce
}
}).then(function(response) {
@ -165,7 +165,7 @@ jQuery(document).ready(function($) {
data: {
action: 'wp_allstars_get_plugins',
category: category || 'minimal',
nonce: wpAllstars.nonce
security: wpAllstars.nonce
},
success: function(response) {
if (response.success) {
@ -199,7 +199,7 @@ jQuery(document).ready(function($) {
type: 'POST',
data: {
action: 'wp_allstars_get_theme',
nonce: wpAllstars.nonce
security: wpAllstars.nonce
},
success: function(response) {
if (response.success) {
@ -264,7 +264,7 @@ jQuery(document).ready(function($) {
data: {
action: 'wp_allstars_activate_theme',
theme: slug,
nonce: wpAllstars.nonce
security: wpAllstars.nonce
},
success: function(response) {
if (response.success) {