fix: Case-sensitivity en namespaces Wordpress -> WordPress
PROBLEMA: - El modal de contacto no se mostraba en producción (Linux) - Funcionaba en local (Windows) porque filesystem es case-insensitive - Carpeta: `WordPress` (con P mayúscula) - Namespaces: `Wordpress` (con p minúscula) SOLUCION: - Corregir todos los namespaces de `Wordpress` a `WordPress` - También corregir paths incorrectos `ROITheme\Component\...` a `ROITheme\Shared\...` ARCHIVOS CORREGIDOS (14): - functions.php - Admin/Infrastructure/Api/WordPress/AdminMenuRegistrar.php - Admin/Shared/Infrastructure/Api/WordPress/AdminAjaxHandler.php - Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php - Public/Footer/Infrastructure/Api/WordPress/NewsletterAjaxHandler.php - Shared/Infrastructure/Api/WordPress/AjaxController.php - Shared/Infrastructure/Api/WordPress/MigrationCommand.php - Shared/Infrastructure/Di/DIContainer.php - Shared/Infrastructure/Persistence/WordPress/WordPressComponentRepository.php - Shared/Infrastructure/Persistence/WordPress/WordPressComponentSettingsRepository.php - Shared/Infrastructure/Persistence/WordPress/WordPressDefaultsRepository.php - Shared/Infrastructure/Services/CleanupService.php - Shared/Infrastructure/Services/SchemaSyncService.php - Shared/Infrastructure/Services/WordPressValidationService.php 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ROITheme\Admin\Infrastructure\Api\Wordpress;
|
||||
namespace ROITheme\Admin\Infrastructure\Api\WordPress;
|
||||
|
||||
use ROITheme\Admin\Domain\Contracts\MenuRegistrarInterface;
|
||||
use ROITheme\Admin\Domain\ValueObjects\MenuItem;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ROITheme\Admin\Shared\Infrastructure\Api\Wordpress;
|
||||
namespace ROITheme\Admin\Shared\Infrastructure\Api\WordPress;
|
||||
|
||||
use ROITheme\Shared\Application\UseCases\SaveComponentSettings\SaveComponentSettingsUseCase;
|
||||
use ROITheme\Admin\Shared\Infrastructure\FieldMapping\FieldMapperRegistry;
|
||||
@@ -130,7 +130,7 @@ final class AdminAjaxHandler
|
||||
// Usar repositorio para restaurar valores
|
||||
if ($this->saveComponentSettingsUseCase !== null) {
|
||||
global $wpdb;
|
||||
$repository = new \ROITheme\Shared\Infrastructure\Persistence\Wordpress\WordPressComponentSettingsRepository($wpdb);
|
||||
$repository = new \ROITheme\Shared\Infrastructure\Persistence\WordPress\WordPressComponentSettingsRepository($wpdb);
|
||||
$updated = $repository->resetToDefaults($component, $schemaPath);
|
||||
|
||||
wp_send_json_success([
|
||||
|
||||
Reference in New Issue
Block a user