fix(di): declare $container as global before assignment

The $container variable was being assigned inside a try-catch block
without being declared as global first, making it unavailable to
Inc/adsense-placement.php functions. This caused AdSense slots to
not be injected into the content.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-27 19:35:22 -06:00
parent 82abdf047a
commit 79b48ad94f
12 changed files with 3 additions and 4642 deletions

View File

@@ -63,6 +63,9 @@ require_once get_template_directory() . '/Inc/social-share.php';
use ROITheme\Shared\Infrastructure\Di\DIContainer;
// Declarar $container como global para que esté disponible en Inc/*.php
global $container;
try {
global $wpdb;