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