diff --git a/plugins/woocommerce/includes/admin/views/html-admin-page-status-report.php b/plugins/woocommerce/includes/admin/views/html-admin-page-status-report.php index 76cf0a00539..d0d652a6c07 100644 --- a/plugins/woocommerce/includes/admin/views/html-admin-page-status-report.php +++ b/plugins/woocommerce/includes/admin/views/html-admin-page-status-report.php @@ -125,54 +125,6 @@ $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, Cons ?> - - : - - - 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' ) . ''; - } - ?> - - :