api->get_endpoint_data( '/wc/v3/system_status' ); $environment = $report['environment']; $database = $report['database']; $post_type_counts = isset( $report['post_type_counts'] ) ? $report['post_type_counts'] : array(); $active_plugins = $report['active_plugins']; $inactive_plugins = $report['inactive_plugins']; $dropins_mu_plugins = $report['dropins_mu_plugins']; $theme = $report['theme']; $security = $report['security']; $settings = $report['settings']; $wp_pages = $report['pages']; $plugin_updates = new WC_Plugin_Updates(); $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, 'minor' ); ?>
: | ||
: | ||
: | ||
: |
api->get_rest_api_package_version();
if ( ! is_null( $version ) ) {
echo ' ' . esc_html( $version ) . ' ' . esc_html( wc()->api->get_rest_api_package_path() ) . ' ';
} else {
echo ' ' . esc_html__( 'Unable to detect the REST API package.', 'woocommerce' ) . '';
}
?>
|
|
: |
' . esc_html( $version ) . ' ' . esc_html( $path ) . ' ';
} else {
echo ' ' . esc_html__( 'Unable to detect the Blocks package.', 'woocommerce' ) . '';
}
?>
|
|
: |
latest_version();
$path = ActionScheduler::plugin_path( '' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
} else {
$version = null;
}
if ( ! is_null( $version ) ) {
echo ' ' . esc_html( $version ) . ' ' . esc_html( $path ) . ' ';
} else {
echo ' ' . esc_html__( 'Unable to detect the Action Scheduler package.', 'woocommerce' ) . '';
}
?>
|
|
: |
is_wc_admin_active() ) {
// Fully active package version of WC Admin.
$version = \Automattic\WooCommerce\Admin\Composer\Package::get_active_version();
$package_active = \Automattic\WooCommerce\Admin\Composer\Package::is_package_active();
} else {
// with WP version < 5.3, package is present, but inactive.
$version = sprintf(
/* translators: %s: Version number of wc-admin package */
__( 'Inactive %s', 'woocommerce' ),
\Automattic\WooCommerce\Admin\Composer\Package::VERSION
);
$package_active = false;
}
$wc_admin_path = \Automattic\WooCommerce\Admin\Composer\Package::get_path();
} else {
$version = null;
}
if ( ! is_null( $version ) ) {
if ( ! isset( $wc_admin_path ) ) {
if ( defined( 'WC_ADMIN_PLUGIN_FILE' ) ) {
$wc_admin_path = dirname( WC_ADMIN_PLUGIN_FILE );
} else {
$wc_admin_path = __( 'Active Plugin', 'woocommerce' );
}
}
if ( WC()->is_wc_admin_active() ) {
echo ' ' . esc_html( $version ) . ' ' . esc_html( $wc_admin_path ) . ' ';
} else {
echo ' ' . esc_html( $version ) . ' ' . esc_html( $wc_admin_path ) . ' ';
}
} else {
echo ' ' . esc_html__( 'Unable to detect the WC Admin package.', 'woocommerce' ) . '';
}
?>
|
|
: |
' . 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'] ) . ''; } ?> | ||
' . esc_html__( 'Table does not exist', 'woocommerce' ) . ''; } else { /* Translators: %1$f: Table size, %2$f: Index size, %3$s Engine. */ printf( esc_html__( 'Data: %1$.2fMB + Index: %2$.2fMB + Engine %3$s', 'woocommerce' ), esc_html( wc_format_decimal( $table_data['data'], 2 ) ), esc_html( wc_format_decimal( $table_data['index'], 2 ) ), esc_html( $table_data['engine'] ) ); } ?> | ||
: | 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' ) . ''; $found_error = true; } elseif ( ! $_page['page_exists'] ) { echo ' ' . esc_html__( 'Page ID is set, but the page does not exist', 'woocommerce' ) . ''; $found_error = true; } elseif ( ! $_page['page_visible'] ) { /* Translators: %s: docs link. */ echo ' ' . wp_kses_post( sprintf( __( 'Page visibility should be public', 'woocommerce' ), 'https://wordpress.org/support/article/content-visibility/' ) ) . ''; $found_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'] ) ) . ''; $found_error = true; } } } if ( ! $found_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://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ); } ?> | |
: | ||
: | ' . sprintf( esc_html__( '%s is available', 'woocommerce' ), esc_html( $theme['parent_version_latest'] ) ) . ''; } ?> | |
: | ||
: | ' . esc_html__( 'Not declared', 'woocommerce' ) . ''; } else { echo ''; } ?> |