Skip to content

Fix: improve performance by loading Promotion only on WordPress admin#386

Merged
rami-elementor merged 1 commit intocore-betafrom
performance-optimization-for-promotions
May 7, 2026
Merged

Fix: improve performance by loading Promotion only on WordPress admin#386
rami-elementor merged 1 commit intocore-betafrom
performance-optimization-for-promotions

Conversation

@rami-elementor
Copy link
Copy Markdown
Contributor

Promotion_Manager instantiates on every request (frontend included), but it should only be instantiated on WordPress admin.

Promotion_Manager constructs multiple notice objects. It already guards with current_screen in the base class, but the instantiation itself is unnecessary on frontend.

@rami-elementor rami-elementor requested a review from a team May 6, 2026 06:12
@rami-elementor rami-elementor merged commit 5bac444 into core-beta May 7, 2026
8 checks passed
@rami-elementor rami-elementor deleted the performance-optimization-for-promotions branch May 7, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants