Fix critical error in WordPress site
- Fixed incorrect path to auto-upload class file - Updated JavaScript to use proper AJAX URL reference - Fixed syntax and indentation issues in the admin JS file - Ensured correct class instantiation
This commit is contained in:
@ -30,7 +30,7 @@ jQuery(document).ready(function($) {
|
||||
// Handle option updates
|
||||
function updateOption(option, value) {
|
||||
return $.ajax({
|
||||
url: ajaxurl,
|
||||
url: wpSeoProStack.ajaxurl,
|
||||
type: 'POST',
|
||||
data: {
|
||||
action: 'wp_seoprostack_update_option',
|
||||
|
@ -47,7 +47,7 @@ function seoprostack_activate() {
|
||||
register_activation_hook( __FILE__, 'seoprostack_activate' );
|
||||
|
||||
// Load core functionality
|
||||
require_once SEOPROSTACK_PLUGIN_DIR . 'includes/class-seoprostack-auto-upload.php';
|
||||
require_once SEOPROSTACK_PLUGIN_DIR . 'includes/features/auto-upload/class-seoprostack-auto-upload.php';
|
||||
|
||||
// Load admin UI and configurations
|
||||
if ( is_admin() ) {
|
||||
|
Reference in New Issue
Block a user