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:
@ -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
|
||||
|
Reference in New Issue
Block a user