From c564ee7a2ac191844260a87f702b23e74aae8059 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Thu, 27 Nov 2025 20:09:47 -0600 Subject: [PATCH] debug: Add visible marker to trace content loss --- Inc/adsense-placement.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Inc/adsense-placement.php b/Inc/adsense-placement.php index d377ec05..5abefd99 100644 --- a/Inc/adsense-placement.php +++ b/Inc/adsense-placement.php @@ -240,7 +240,9 @@ function roi_inject_content_ads(string $content): string ); $content = $injector->inject($content); - $finalContent = $postTopHtml . $content . $postBottomHtml; + // DEBUG: Agregar marcador visible para rastrear si el contenido se pierde después del filtro + $debugMarker = ''; + $finalContent = $debugMarker . $postTopHtml . $content . $postBottomHtml . $debugMarker; error_log('ROI AdSense Debug: Final injection done. postTop=' . strlen($postTopHtml) . ', postBottom=' . strlen($postBottomHtml) . ', finalLength=' . strlen($finalContent)); error_log('ROI AdSense Debug: First 200 chars of postTopHtml: ' . substr($postTopHtml, 0, 200));