File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,10 @@ public function init(): void {
8181 */
8282 public function admin_init (): void {
8383 if ( defined ( '\DOING_AJAX ' ) && DOING_AJAX ) {
84+ // AJAX requests
8485 new AJAX ();
85- }
86-
87- if ( ! ( defined ( '\DOING_AJAX ' ) && DOING_AJAX ) ) {
88- // admin only
86+ } else {
87+ // Non-AJAX (Admin) requests
8988 new Admin ();
9089 }
9190 }
Original file line number Diff line number Diff line change 2424 "prepare" : " husky install" ,
2525 "settings" : " yarn workspace @wcpos/settings" ,
2626 "analytics" : " yarn workspace @wcpos/analytics" ,
27- "build:js" : " yarn workspace @wcpos/settings build && yarn workspace @wcpos/edit-product build && yarn workspace @wcpos/ analytics build"
27+ "build:js" : " yarn workspace @wcpos/settings build && yarn workspace @wcpos/analytics build"
2828 },
2929 "repository" : {
3030 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments