api->rest_api_includes(); } if ( ! class_exists( 'WC_REST_System_Status_Controller', false ) ) { wp_die( 'Cannot load the REST API to access WC_REST_System_Status_Controller.' ); } $system_status = new WC_REST_System_Status_Controller(); $environment = $system_status->get_environment_info(); $database = $system_status->get_database_info(); $post_type_counts = $system_status->get_post_type_counts(); $active_plugins = $system_status->get_active_plugins(); $theme = $system_status->get_theme_info(); $security = $system_status->get_security_info(); $settings = $system_status->get_settings(); $pages = $system_status->get_pages(); $plugin_updates = new WC_Plugin_Updates(); $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, 'minor' ); ?>
: | ||
: | ||
: | ||
: |
' . esc_html( $environment['log_directory'] ) . ' ';
} else {
/* Translators: %1$s: Log directory, %2$s: Log directory constant */
echo ' ' . sprintf( esc_html__( 'To allow logging, make %1$s writable or define a custom %2$s.', 'woocommerce' ), '' . esc_html( $environment['log_directory'] ) . ' ', 'WC_LOG_DIR ' ) . '';
}
?>
|
|
: | ' . sprintf( esc_html__( '%1$s - There is a newer version of WordPress available (%2$s)', 'woocommerce' ), esc_html( $environment['wp_version'] ), esc_html( $latest_version ) ) . ''; } else { echo '' . esc_html( $environment['wp_version'] ) . ''; } ?> | |
: | ' : '–'; ?> | |
: | ' . sprintf( esc_html__( '%1$s - We recommend setting memory to at least 64MB. See: %2$s', 'woocommerce' ), esc_html( size_format( $environment['wp_memory_limit'] ) ), '' . esc_html__( 'Increasing memory allocated to PHP', 'woocommerce' ) . '' ) . ''; } else { echo '' . esc_html( size_format( $environment['wp_memory_limit'] ) ) . ''; } ?> | |
: | – | |
: | – | |
: | ||
: | – |
: | ||
: | =' ) ) { echo '' . esc_html( $environment['php_version'] ) . ''; } else { $update_link = ' ' . esc_html__( 'How to update your PHP version', 'woocommerce' ) . ''; $class = 'error'; if ( version_compare( $environment['php_version'], '5.4', '<' ) ) { $notice = ' ' . __( 'WooCommerce will run under this version of PHP, however, some features such as geolocation are not compatible. Support for this version will be dropped in the next major release. We recommend using PHP version 7.2 or above for greater performance and security.', 'woocommerce' ) . $update_link; } elseif ( version_compare( $environment['php_version'], '5.6', '<' ) ) { $notice = ' ' . __( 'WooCommerce will run under this version of PHP, however, it has reached end of life. We recommend using PHP version 7.2 or above for greater performance and security.', 'woocommerce' ) . $update_link; } elseif ( version_compare( $environment['php_version'], '7.2', '<' ) ) { $notice = __( 'We recommend using PHP version 7.2 or above for greater performance and security.', 'woocommerce' ) . $update_link; $class = 'recommendation'; } echo '' . esc_html( $environment['php_version'] ) . ' - ' . wp_kses_post( $notice ) . ''; } ?> | |
: | ||
: | ||
: | ||
: | ||
: | ' : '–'; ?> | |
: | ' . sprintf( esc_html__( '%1$s - We recommend a minimum MySQL version of 5.6. See: %2$s', 'woocommerce' ), esc_html( $environment['mysql_version_string'] ), '' . esc_html__( 'WordPress requirements', 'woocommerce' ) . '' ) . ''; } else { echo '' . esc_html( $environment['mysql_version_string'] ) . ''; } ?> | |
: | ||
: | ' . sprintf( esc_html__( 'Default timezone is %s - it should be UTC', 'woocommerce' ), esc_html( $environment['default_timezone'] ) ) . ''; } else { echo ''; } ?> | |
: | '; } else { echo ' ' . esc_html__( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce' ) . ''; } ?> | |
: | '; } else { /* Translators: %s classname and link. */ echo ' ' . sprintf( esc_html__( 'Your server does not have the %s class enabled - some gateway plugins which use SOAP may not work as expected.', 'woocommerce' ), 'SoapClient' ) . ''; } ?> | |
: | '; } else { /* Translators: %s: classname and link. */ echo ' ' . sprintf( esc_html__( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'woocommerce' ), 'DOMDocument' ) . ''; } ?> | |
: | '; } else { /* Translators: %s: classname and link. */ echo ' ' . sprintf( esc_html__( 'Your server does not support the %s function - this is required to use the GeoIP database from MaxMind.', 'woocommerce' ), 'gzopen' ) . ''; } ?> | |
: | '; } else { /* Translators: %s: classname and link. */ echo ' ' . sprintf( esc_html__( 'Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it.', 'woocommerce' ), 'mbstring' ) . ''; } ?> | |
: | '; } else { /* Translators: %s: function name. */ echo ' ' . sprintf( esc_html__( '%s failed. Contact your hosting provider.', 'woocommerce' ), 'wp_remote_post()' ) . ' ' . esc_html( $environment['remote_post_response'] ) . ''; } ?> | |
: | '; } else { /* Translators: %s: function name. */ echo ' ' . sprintf( esc_html__( '%s failed. Contact your hosting provider.', 'woocommerce' ), 'wp_remote_get()' ) . ' ' . esc_html( $environment['remote_get_response'] ) . ''; } ?> | |
: |
: | ||
20 ) { /* Translators: %1$s: Database prefix, %2$s: Docs link. */ echo ' ' . sprintf( esc_html__( '%1$s - We recommend using a prefix with less than 20 characters. See: %2$s', 'woocommerce' ), esc_html( $database['database_prefix'] ), '' . esc_html__( 'How to update your database table prefix', 'woocommerce' ) . '' ) . ''; } else { echo '' . esc_html( $database['database_prefix'] ) . ''; } ?> | ||
: |
' . wp_kses_post( __( 'MaxMind GeoIP database requires at least PHP 5.4.', 'woocommerce' ) ) . '';
} elseif ( file_exists( $database['maxmind_geoip_database'] ) ) {
echo ' ' . esc_html( $database['maxmind_geoip_database'] ) . ' ';
} else {
/* Translators: %1$s: Library url, %2$s: install path. */
printf( ' ' . sprintf( esc_html__( 'The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from %1$s to the path: %2$s. Scroll down to "Downloads" and download the "MaxMind DB binary, gzipped" file next to "GeoLite2 Country". Please remember to uncompress GeoLite2-Country_xxxxxxxx.tar.gz and upload the GeoLite2-Country.mmdb file only.', 'woocommerce' ), 'https://dev.maxmind.com/geoip/geoip2/geolite2/', '' . esc_html( $database['maxmind_geoip_database'] ) . ' ' ) . '', esc_html( WC_LOG_DIR ) );
}
?>
|
|
' . esc_html__( 'Table does not exist', 'woocommerce' ) . ''; } else { /* Translators: %1$f: Table size, %2$f: Index size. */ printf( esc_html__( 'Data: %1$.2fMB + Index: %2$.2fMB', 'woocommerce' ), esc_html( wc_format_decimal( $table_data['data'], 2 ) ), esc_html( wc_format_decimal( $table_data['index'], 2 ) ) ); } ?> | ||
type ); ?> | count ); ?> |
: | Learn more about HTTPS and SSL Certificates.', 'woocommerce' ), 'https://docs.woocommerce.com/document/ssl-and-https/' ) ); ?> | |
() |
||
---|---|---|
: | ' : '–'; ?> | |
: | ' : '–'; ?> | |
() | ||
$name ) { $display_terms[] = strtolower( $name ) . ' (' . $slug . ')'; } echo implode( ', ', array_map( 'esc_html', $display_terms ) ); ?> | ||
$name ) { $display_terms[] = strtolower( $name ) . ' (' . $slug . ')'; } echo implode( ', ', array_map( 'esc_html', $display_terms ) ); ?> |
' . wp_kses_post( $page_name ) . ': | '; /* Translators: %s: page name. */ echo '' . wc_help_tip( sprintf( esc_html__( 'The URL of your %s page (along with the Page ID).', 'woocommerce' ), $page_name ) ) . ' | '; // Page ID check. if ( ! $page['page_set'] ) { echo ' ' . esc_html__( 'Page not set', 'woocommerce' ) . ''; $error = true; } elseif ( ! $page['page_exists'] ) { echo ' ' . esc_html__( 'Page ID is set, but the page does not exist', 'woocommerce' ) . ''; $error = true; } elseif ( ! $page['page_visible'] ) { /* Translators: %s: docs link. */ echo ' ' . wp_kses_post( sprintf( __( 'Page visibility should be public', 'woocommerce' ), 'https://codex.wordpress.org/Content_Visibility' ) ) . ''; $error = true; } else { // Shortcode check. if ( $page['shortcode_required'] ) { if ( ! $page['shortcode_present'] ) { echo ' ' . sprintf( esc_html__( 'Page does not contain the shortcode.', 'woocommerce' ), esc_html( $page['shortcode'] ) ) . ''; $error = true; } } } if ( ! $error ) { echo '#' . absint( $page['page_id'] ) . ' - ' . esc_html( str_replace( home_url(), '', get_permalink( $page['page_id'] ) ) ) . ''; } echo ' |
: | ||
: | ' . sprintf( esc_html__( '%s is available', 'woocommerce' ), esc_html( $theme['version_latest'] ) ) . ''; } ?> | |
: | ||
: | '; } else { /* Translators: %s docs link. */ echo ' – ' . wp_kses_post( sprintf( __( 'If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme', 'woocommerce' ), 'https://codex.wordpress.org/Child_Themes' ) ); } ?> | |
: | ||
: | ' . sprintf( esc_html__( '%s is available', 'woocommerce' ), esc_html( $theme['parent_version_latest'] ) ) . ''; } ?> | |
: | ||
: | ' . esc_html__( 'Not declared', 'woocommerce' ) . ''; } else { echo ''; } ?> |