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

@ -91,6 +91,8 @@
height: 20px;
flex-shrink: 0;
cursor: pointer;
pointer-events: all;
z-index: 2;
}
.wp-toggle-switch input {
@ -220,6 +222,11 @@ input:checked + .wp-toggle-slider:before {
transform: translateY(-50%) rotate(180deg);
}
/* Make sure the label doesn't interfere with clickability */
.wp-allstars-toggle-left label {
pointer-events: none;
}
.wp-allstars-expand-settings {
display: none;
}
@ -648,8 +655,9 @@ input:checked + .wp-toggle-slider:before {
.wp-allstars-setting-row label .wp-setting-notification {
position: absolute;
right: -60px;
top: 50%;
transform: translateY(-50%);
top: 0;
transform: translateY(0);
line-height: 1.4;
}
@keyframes fadeIn {

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