diff --git a/includes/admin/helper/class-wc-helper.php b/includes/admin/helper/class-wc-helper.php index 9ac16f1ddba..3a724c0ae28 100644 --- a/includes/admin/helper/class-wc-helper.php +++ b/includes/admin/helper/class-wc-helper.php @@ -1014,11 +1014,6 @@ class WC_Helper { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } - $woo_plugins = get_transient( 'wc_helper_installed_woo_plugins' ); - if ( false !== $woo_plugins ) { - return $woo_plugins; - } - $plugins = get_plugins(); $woo_plugins = array(); @@ -1055,19 +1050,9 @@ class WC_Helper { $woo_plugins[ $filename ] = $data; } - set_transient( 'wc_helper_installed_woo_plugins', $woo_plugins, DAY_IN_SECONDS ); return $woo_plugins; } - /** - * Obtain a list of slugs of locally installed Woo extensions. - * (Cached for 1 day.) - */ - public static function get_local_woo_plugin_slugs() { - $slugs = wp_list_pluck( self::get_local_woo_plugins(), 'slug' ); - return array_values( $slugs ); - } - /** * Get locally installed Woo themes. */