Cleanup unused functions and files.

This commit is contained in:
Maria Górska-Piszek 2021-08-05 17:53:18 +02:00
parent 08555ff778
commit e14efd7dae
3 changed files with 2 additions and 35 deletions

View File

@ -730,13 +730,6 @@ class WC_Admin_Addons {
include_once dirname( __FILE__ ) . '/views/html-admin-page-addons.php';
}
/**
* Outputs the WooCommerce.com Subscriptions page separately
*/
public static function helper_output() {
do_action( 'woocommerce_helper_output' );
}
/**
* Install WooCommerce Services from Extensions screens.
*/

View File

@ -151,8 +151,8 @@ class WC_Admin_Menus {
$count_html = WC_Helper_Updater::get_updates_count_html();
/* translators: %s: extensions count */
$menu_title = sprintf( __( 'My Subscriptions %s', 'woocommerce' ), $count_html );
add_submenu_page( 'woocommerce', __( 'Marketplace', 'woocommerce' ), __( 'Marketplace', 'woocommerce' ), 'manage_woocommerce', 'wc-addons', array( $this, 'addons_page' ) );
add_submenu_page( 'woocommerce', __( 'WooCommerce.com Subscriptions', 'woocommerce' ), $menu_title, 'manage_woocommerce', 'wc-addons&section=helper', array( $this, 'helper_page' ) );
add_submenu_page( 'woocommerce', __( 'WooCommerce extensions', 'woocommerce' ), __( 'Marketplace', 'woocommerce' ), 'manage_woocommerce', 'wc-addons', array( $this, 'addons_page' ) );
add_submenu_page( 'woocommerce', __( 'My WooCommerce.com Subscriptions', 'woocommerce' ), $menu_title, 'manage_woocommerce', 'wc-addons&section=helper', array( $this, 'addons_page' ) );
}
/**
@ -296,13 +296,6 @@ class WC_Admin_Menus {
WC_Admin_Addons::output();
}
/**
* Init the helper page.
*/
public function helper_page() {
WC_Admin_Addons::helper_output();
}
/**
* Add custom nav meta box.
*

View File

@ -1,19 +0,0 @@
<?php
/**
* Helper admin navigation.
*
* @package WooCommerce\Helper
*/
defined( 'ABSPATH' ) || exit(); ?>
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons' ) ); ?>" class="nav-tab"><?php esc_html_e( 'Browse Extensions', 'woocommerce' ); ?></a>
<?php
$count_html = WC_Helper_Updater::get_updates_count_html();
/* translators: %s: WooCommerce.com Subscriptions tab count HTML. */
$menu_title = sprintf( __( 'WooCommerce.com Subscriptions %s', 'woocommerce' ), $count_html );
?>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons&section=helper' ) ); ?>" class="nav-tab nav-tab-active"><?php echo wp_kses_post( $menu_title ); ?></a>
</nav>