Fix plugin activation and critical errors

- Fixed class naming inconsistency in auto-upload functionality
- Resolved duplicate menu items by removing direct inclusion of settings.php
- Fixed JavaScript variable naming from seoProStack to wpSeoProStack
- Added deprecation notice to legacy auto-upload class
- Updated AJAX nonce references for consistency
This commit is contained in:
Marcus Quinn
2025-03-24 03:11:03 +00:00
parent 7f4ea3ec0c
commit 6fc054f2bf
2 changed files with 11 additions and 11 deletions

View File

@ -28,11 +28,11 @@ define('SEOPROSTACK_PLUGIN_BASENAME', plugin_basename(__FILE__));
// Load autoloader
require_once SEOPROSTACK_PLUGIN_DIR . 'includes/core/class-seoprostack-autoloader.php';
// Backward compatibility - load the existing functionality
// Backward compatibility - load only necessary legacy files
// This will be removed in future iterations
if (is_admin()) {
require_once SEOPROSTACK_PLUGIN_DIR . 'admin/pro-plugins-config.php';
require_once SEOPROSTACK_PLUGIN_DIR . 'admin/settings.php';
// Legacy settings.php is now handled through the OOP structure
}
// Activation hook