rotected function validate_request_permission( $check ) { $default_capability = 'view_site_health_checks'; /** * Filters the capability needed to run a given Site Health check. * * @since 5.6.0 * * @param string $default_capability The default capability required for this check. * @param string $check The Site Health check being performed. */ $capability = apply_filters( "site_health_test_rest_capability_{$check}", $default_capability, $check ); return current_user_can( $capability ); } /** * Checks if background updates work as expected. * * @since 5.6.0 * * @return array */ public function test_background_updates() { $this->load_admin_textdomain(); return $this->site_health->get_test_background_updates(); } /** * Checks that the site can reach the WordPress.org API. * * @since 5.6.0 * * @return array */ public function test_dotorg_communication() { $this->load_admin_textdomain(); return $this->site_health->get_test_dotorg_communication(); } /** * Checks that loopbacks can be performed. * * @since 5.6.0 * * @return array */ public function test_loopback_requests() { $this->load_admin_textdomain(); return $this->site_health->get_test_loopback_requests(); } /** * Checks that the site's frontend can be accessed over HTTPS. * * @since 5.7.0 * * @return array */ public function test_https_status() { $this->load_admin_textdomain(); return $this->site_health->get_test_https_status(); } /** * Checks that the authorization header is valid. * * @since 5.6.0 * * @return array */ public function test_authorization_header() { $this->load_admin_textdomain(); return $this->site_health->get_test_authorization_header(); } /** * Checks that full page cache is active. * * @since 6.1.0 * * @return array The test result. */ public function test_page_cache() { $this->load_admin_textdomain(); return $this->site_health->get_test_page_cache(); } /** * Gets the current directory sizes for this install. * * @since 5.6.0 * * @return array|WP_Error */ public function get_directory_sizes() { if ( ! class_exists( 'WP_Debug_Data' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php'; } $this->load_admin_textdomain(); $sizes_data = WP_Debug_Data::get_sizes(); $all_sizes = array( 'raw' => 0 ); foreach ( $sizes_data as $name => $value ) { $name = sanitize_text_field( $name ); $data = array(); if ( isset( $value['size'] ) ) { if ( is_string( $value['size'] ) ) { $data['size'] = sanitize_text_field( $value['size'] ); } else { $data['size'] = (int) $value['size']; } } if ( isset( $value['debug'] ) ) { if ( is_string( $value['debug'] ) ) { $data['debug'] = sanitize_text_field( $value['debug'] ); } else { $data['debug'] = (int) $value['debug']; } } if ( ! empty( $value['raw'] ) ) { $data['raw'] = (int) $value['raw']; } $all_sizes[ $name ] = $data; } if ( isset( $all_sizes['total_size']['debug'] ) && 'not available' === $all_sizes['total_size']['debug'] ) { return new WP_Error( 'not_available', __( 'Directory sizes could not be returned.' ), array( 'status' => 500 ) ); } return $all_sizes; } /** * Loads the admin textdomain for Site Health tests. * * The {@see WP_Site_Health} class is defined in WP-Admin, while the REST API operates in a front-end context. * This means that the translations for Site Health won't be loaded by default in {@see load_default_textdomain()}. * * @since 5.6.0 */ protected function load_admin_textdomain() { // Accounts for inner REST API requests in the admin. if ( ! is_admin() ) { $locale = determine_locale(); load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo", $locale ); } } /** * Gets the schema for each site health test. * * @since 5.6.0 * * @return array The test schema. */ public function get_item_schema() { if ( $this->schema ) { return $this->schema; } $this->schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'wp-site-health-test', 'type' => 'object', 'properties' => array( 'test' => array( 'type' => 'string', 'description' => __( 'The name of the test being run.' ), 'readonly' => true, ), 'label' => array( 'type' => 'string', 'description' => __( 'A label describing the test.' ), 'readonly' => true, ), 'status' => array( 'type' => 'string', 'description' => __( 'The status of the test.' ), 'enum' => array( 'good', 'recommended', 'critical' ), 'readonly' => true, ), 'badge' => array( 'type' => 'object', 'description' => __( 'The category this test is grouped in.' ), 'properties' => array( 'label' => array( 'type' => 'string', 'readonly' => true, ), 'color' => array( 'type' => 'string', 'enum' => array( 'blue', 'orange', 'red', 'green', 'purple', 'gray' ), 'readonly' => true, ), ), 'readonly' => true, ), 'description' => array( 'type' => 'string', 'description' => __( 'A more descriptive explanation of what the test looks for, and why it is important for the user.' ), 'readonly' => true, ), 'actions' => array( 'type' => 'string', 'description' => __( 'HTML containing an action to direct the user to where they can resolve the issue.' ), 'readonly' => true, ), ), ); return $this->schema; } } Harässli https://validator.w3.org/feed/docs/rss2.html Atlan und Artisan Five Miles 2015 750 ml Blog Figuero 12 (Crianza) 2019 750 ml Weingut Goldwand Sonderabfüllung AOC 750 ml Caroni Small Batch Rare Rum 22 Years Sherry Finish 500 ml Susana Balbo Torrontes Crios 2018 750 ml Legendario Elixir de Cuba Rumlikör 700 ml Startseite Grappa Amarone Barrique Bellavite 500 ml Havanna Club Anejo 7 Anos 700 ml Höritröpfli Gin Batch 4 500 ml Steimer Weinbau Herrenberg Exklusiv AOC 750 ml Cantina Paladin Pinot Grigio 2018 750 ml Höritröpfli Gin Batch 1 500 ml Glendalough 13 Years Mizunara Irish Single Malt Whisky 700 ml Thomas Lehner Zweigelt Kranerwitzl Nr. 23 750 ml Glenfiddich 21Years Rum Cask Finshed Single Malt Whisky 700 ml Clouds Gin 700 ml Esporao Reserva DOC Alentejo 2017 750 ml Berry’s Own Selection Graigellachie 1991 700 ml Diplomatico Distillery Collection No2 Barbet Still 700 ml Tabar Gin 700 ml Diplomatico Reserva Exclusiva Rum 700 ml Chateau d’Auvernier Neuchatel Blanc AOC 2012 750 ml Loch Lomond 12 Years Single Malt Whisky Inchmoan 700 ml The Balvenie Carribian Cask 14 Years Single Malt Whisky 700 ml Appenzeller Alpenbitter 1l Ardbeg 10 Years Ultimate, 700ml Roberto Dellavalle Grappa Affinata in Botti da Porto 0,7l 42% Benmarco Expresivo Malbec /Cabernet Franc 2014 750 ml Aarver Cask Barrel Aged Gin 700 ml Boote Star Demerara Rum 20 Years 700 ml Charles Bonvin Petite Arvine du Valais AOC 2018 750 ml Tobermory Hebridean Gin 700 ml Conde de Valdemar Crianza Rioja 2019 750 ml Glen Scotia 11 Years Sherry Doublecask Finish Single Malt Whisky 700 ml Glen Scotia 14y Twany Port Finish Single Malt Whisky 700 ml Gents Swiss Roots Tonicwasser 200 ml Brockmans Intensely Smooth Premium Gin 700 ml Shop Figuero 15 Reserva 2018 750 ml Susana Balbo Malbec Signiature 2017 750 ml Finca Constancia Parcela 23 2016 750 ml Susana Balbo Malbec Crios 2018 750 ml “Heimat blanc” von Tim Munz und Baumgartner Assemblage 2020 750 ml Ribas Negre DO 2017 750 ml Rodriguez Sanzo Damalisco Roble DO Toro Tampranillo 2018 750 ml Chateau Forcas-Borie AC Listrac-Medoc 2012 750 ml Domaine Peres de l’Eglise Cotes-du-Rhone AC 2016 750 ml Ole Smoky Harley Davidson Smoky Moonshine 700 ml