fix(adsense): Remove debug code after finding root cause
Root cause: mu-plugin allow-unfiltered-html.php was replacing all filtered content with raw DB content at PHP_INT_MAX priority. Solution: Modified mu-plugin on server to call roi_inject_content_ads() after getting raw content. NOTE: The mu-plugin change is only on the production server at: /wp-content/mu-plugins/allow-unfiltered-html.php The change adds roi_inject_content_ads() call after YouTube Facade filter. This allows ads to be injected into posts even with the raw content bypass. Cleaned up: - Removed debug logging from adsense-placement.php - Removed template-level debug from single.php - Removed debug markers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
single.php
10
single.php
@@ -39,18 +39,8 @@ if (function_exists('roi_render_component')) {
|
||||
|
||||
<!-- Post Content -->
|
||||
<article class="post-content">
|
||||
<!-- DEBUG: BEFORE the_content() -->
|
||||
<?php
|
||||
// DEBUG: Capturar output de the_content
|
||||
ob_start();
|
||||
the_content();
|
||||
$captured_content = ob_get_clean();
|
||||
// DEBUG: Log y output
|
||||
if (defined('WP_DEBUG') && WP_DEBUG) {
|
||||
error_log('ROI DEBUG single.php: the_content() returned ' . strlen($captured_content) . ' chars');
|
||||
error_log('ROI DEBUG single.php: First 300 chars: ' . substr($captured_content, 0, 300));
|
||||
}
|
||||
echo $captured_content;
|
||||
|
||||
wp_link_pages(array(
|
||||
'before' => '<div class="page-links">' . esc_html__('Pages:', 'roi-theme'),
|
||||
|
||||
Reference in New Issue
Block a user