input->server->getString('REQUEST_URI', ''); if (static::isWordPress()) { if (strpos($requestUri, trailingslashit(rest_get_url_prefix())) !== false || JUri::getInstance($requestUri)->hasVar('rest_route')) { return true; } } return false; } /** * Detects the name of the platform on which we are running the software. * * @return void */ private static function detect() { if (defined('ABSPATH') && function_exists('wp_die')) { static::$platform = 'wordpress'; } else { static::$platform = 'joomla'; } } }