From 80c3858aa6560c6edbc6fc5f1322f2738f427b6f Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Fri, 18 Mar 2022 15:28:44 -0700 Subject: [PATCH] Removed WooCommerce Admin SSR Version Since there's no such thing as WooCommerce Admin anymore, we can remove it from the SSR. --- .../views/html-admin-page-status-report.php | 48 ------------------- 1 file changed, 48 deletions(-) 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' ) . ''; - } - ?> - - :