Fix reference to `WC_Site_Tracking`.

This commit is contained in:
Barry Hughes 2024-09-18 15:12:03 -07:00
parent 8cdefdcd01
commit 90a4fb5e6a
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Prevent fatals resulting from incorrect reference to `WC_Site_Tracking` during admin notes API requests.

View File

@ -5,6 +5,8 @@
namespace Automattic\WooCommerce\Admin\Notes;
use WC_Site_Tracking;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}