From 4ee030b84ac38d2e5ff9377d9a3aad83cd2eac33 Mon Sep 17 00:00:00 2001 From: Alex Standiford Date: Tue, 11 May 2021 11:34:53 -0700 Subject: [PATCH] Corrects underpin autoloader --- admin-notices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-notices.php b/admin-notices.php index 6c5d474..5164d60 100644 --- a/admin-notices.php +++ b/admin-notices.php @@ -5,7 +5,7 @@ // Add this loader. add_action( 'underpin/before_setup', function ( $file, $class ) { - if ( ! defined( 'UNDERPIN_ADMIN_MENU_ROOT_DIR' ) ) { + if ( ! defined( 'UNDERPIN_ADMIN_NOTICES_ROOT_DIR' ) ) { define( 'UNDERPIN_ADMIN_NOTICES_ROOT_DIR', plugin_dir_path( __FILE__ ) ); } require_once( UNDERPIN_ADMIN_NOTICES_ROOT_DIR . 'lib/abstracts/Admin_Notice.php' );