From 8e8c9157f74665ca902bdca486145f4d5ce23309 Mon Sep 17 00:00:00 2001 From: Timmy Crawford Date: Wed, 6 Mar 2019 11:32:25 -0800 Subject: [PATCH] Fix exception when running against master/3.6-dev --- .../includes/class-wc-beta-tester-admin-menus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester-admin-menus.php b/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester-admin-menus.php index 8bdd8a5627f..daa266a69ec 100644 --- a/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester-admin-menus.php +++ b/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester-admin-menus.php @@ -16,7 +16,7 @@ class WC_Beta_Tester_Admin_Menus { * Constructor */ public function __construct() { - if ( class_exists( 'WC_Admin_Status' ) ) { + if ( class_exists( 'WC_Admin_Status' ) && class_exists( 'WC_REST_System_Status_Controller' ) ) { add_action( 'admin_bar_menu', array( $this, 'admin_bar_menus' ), 50 ); } add_action( 'admin_footer', array( $this, 'version_information_template' ) );