debug: Add visible marker to trace content loss
This commit is contained in:
@@ -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 = '<!-- ROI-ADSENSE-DEBUG-MARKER -->';
|
||||
$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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user