mirror of
https://gh.wpcy.net/https://github.com/elementor/elementor.git
synced 2026-04-20 12:23:54 +08:00
## PR Checklist <!-- Please check if your PR fulfills the following requirements: **Filling out the template is required.** Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion. --> - [ ] The commit message follows our guidelines: https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md ## PR Type What kind of change does this PR introduce? <!-- Please check the one that applies to this PR using "x" with no spaces eg: [x]. --> - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, local variables) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] CI related changes - [ ] Documentation content changes - [ ] Other... Please describe: ## Summary This PR can be summarized in the following changelog entry: * ## Description An explanation of what is done in this PR * ## Test instructions This PR can be tested by following these steps: * ## Quality assurance - [ ] I have tested this code to the best of my abilities - [ ] I have added unittests to verify the code works as intended - [ ] Docs have been added / updated (for bug fixes / features) Fixes # <!--start_gitstream_placeholder--> ### ✨ PR Description ## 1. Problem & Context Removing a one-time promotional popup that introduced the refreshed Top Bar layout in v3.32.0. The popup has served its purpose for existing users who upgraded, and keeping the code adds unnecessary complexity and user meta overhead. ## 2. What Changed (Where) - `modules/editor-app-bar/module.php`: Removed popup dismissal logic, constants, AJAX handlers, and user meta checks (~60 lines) - `packages/.../use-action-props.ts`: Replaced `StructureIconWithPopup` with plain `StructureIcon` import - `packages/.../structure-icon-with-popup.tsx`: Deleted entire component file (84 lines) - `packages/.../types.ts`: Removed `elementorShowInfotip` and `ajax.addRequest` type definitions ## 3. How It Works Straightforward removal. The Structure button now renders with `StructureIcon` directly instead of conditionally wrapping it in an `Infotip` based on `elementorShowInfotip` localized script variable. All server-side logic for checking upgrade version, user meta, and AJAX dismissal is gone. ## 4. Risks None. The popup was transient by design—users who dismissed it won't see it again anyway due to the meta flag, and new users never needed it. The only edge case is users who never dismissed it, but they lose nothing except an outdated informational popup. _Generated by LinearB AI and added by gitStream._ <sub>AI-generated content may contain inaccuracies. Please verify before using. 💡 **Tip:** You can customize your AI Description using **Guidelines** [Learn how](https://docs.gitstream.cm/automation-actions/#describe-changes)</sub> <!--end_gitstream_placeholder--> |
||
|---|---|---|
| .. | ||
| module.php | ||