diff --git a/includes/admin/views/html-admin-page-status-report.php b/includes/admin/views/html-admin-page-status-report.php index d15107a96af..a1ed0b386a5 100644 --- a/includes/admin/views/html-admin-page-status-report.php +++ b/includes/admin/views/html-admin-page-status-report.php @@ -191,16 +191,18 @@ $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, 'minor 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; + $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; + $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 ) . ''; + echo '' . esc_html( $environment['php_version'] ) . ' - ' . wp_kses_post( $notice ) . ''; } ?>