![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/metras.v32.1/ |
<?php function ___wejns_wp_whitespace_fix($input) { /* valid content-type? */ $allowed = false; /* found content-type header? */ $found = false; /* we mangle the output if (and only if) output type is text/* */ foreach (headers_list() as $header) { if (preg_match("/^content-type:\\s+(text\\/|application\\/((xhtml|atom|rss)\\+xml|xml))/i", $header)) { $allowed = true; } if (preg_match("/^content-type:\\s+/i", $header)) { $found = true; } } /* do the actual work */ if ($allowed || !$found) { return preg_replace("/\\A\\s*/m", "", $input); } else { return $input; } } /* start output buffering using custom callback */ ob_start("___wejns_wp_whitespace_fix"); /** * Do not edit anything in this file unless you know what you're doing */ /** * Helper function for prettying up errors * * @param string $message * @param string $subtitle * @param string $title */ $sage_error = function ($message, $subtitle = '', $title = '') { $title = $title ?: __('Sage › Error', 'sage'); $footer = '<a href="https://roots.io/sage/docs/">roots.io/sage/docs/</a>'; $message = "<h1>{$title}<br><small>{$subtitle}</small></h1><p>{$message}</p><p>{$footer}</p>"; wp_die($message, $title); }; /** * Ensure compatible version of PHP is used */ if (version_compare('7.1.3', phpversion(), '>')) { $sage_error(__('You must be using PHP 7.1.3 or greater.', 'sage'), __('Invalid PHP version', 'sage')); } /** * Ensure compatible version of WordPress is used */ if (version_compare('5.2', get_bloginfo('version'), '>')) { $sage_error(__('You must be using WordPress 5.2 or greater.', 'sage'), __('Invalid WordPress version', 'sage')); } /** * Ensure dependencies are loaded */ if (! file_exists($composer = __DIR__ . '/vendor/autoload.php')) { $sage_error( __('You must run <code>composer install</code> from the Sage directory.', 'sage'), __('Autoloader not found.', 'sage') ); } require_once $composer; /** * Sage required files * * The mapped array determines the code library included in your theme. * Add or remove files to the array as needed. Supports child theme overrides. */ array_map(function ($file) use ($sage_error) { $file = "app/{$file}.php"; if (! locate_template($file, true, true)) { $sage_error( sprintf(__('Error locating <code>%s</code> for inclusion.', 'sage'), $file), __('File not found', 'sage') ); } }, ['helpers', 'setup', 'filters', 'admin']); /** * Enable sage features * @link https://roots.io/acorn/ */ add_theme_support('sage'); Roots\bootloader();