This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid crash in InboxNotifications if woocommerce-admin is entirely di…
…sabled. (#5954) * Avoid calling plugin_dir_url a lot * Fix crash if woocommerce admin is disabled With Woocommerce's PR woocommerce/woocommerce#31991 applied, if woocommerce admin is disabled via the woocommerce_admin_disabled filter, the InboxNotifications block could crash. * Fix coding style * Simplify code path * Remove unused initialization
- Loading branch information