Fix fatal error: Address naming inconsistencies from WP Allstars to SEO Pro Stack refactoring
- Resolved class naming conflicts in auto-upload functionality - Fixed menu slug from 'wp-allstars' to 'seoprostack' - Corrected AJAX nonce references for consistency - Updated JavaScript variable name to 'wpSeoProStack' - Added deprecation notice to legacy auto-upload class
This commit is contained in:
@ -9,7 +9,7 @@ function wp_seoprostack_admin_menu() {
|
||||
'SEO Pro Stack Settings',
|
||||
'SEO Pro Stack',
|
||||
'manage_options',
|
||||
'wp-allstars',
|
||||
'seoprostack',
|
||||
'wp_seoprostack_settings_page'
|
||||
);
|
||||
}
|
||||
@ -31,7 +31,7 @@ add_action('admin_init', 'wp_seoprostack_register_settings');
|
||||
|
||||
// AJAX handler for settings
|
||||
function wp_seoprostack_update_option() {
|
||||
check_ajax_referer('wp-seoprostack-nonce', 'nonce');
|
||||
check_ajax_referer('seoprostack-nonce', 'nonce');
|
||||
$option = sanitize_text_field($_POST['option']);
|
||||
$value = intval($_POST['value']);
|
||||
update_option($option, $value);
|
||||
|
Reference in New Issue
Block a user