Fix exception when running against master/3.6-dev

This commit is contained in:
Timmy Crawford 2019-03-06 11:32:25 -08:00
parent 3848a9a442
commit 8e8c9157f7
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) );