mirror of
https://gh.wpcy.net/https://github.com/elementor/elementor.git
synced 2026-05-06 15:29:54 +08:00
## PR Checklist - [ ] 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? - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, local variables) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] CI related changes - [ ] Documentation content changes - [x] Other... Please describe: Functionality removal / Hides existing UI component ## Summary This PR can be summarized in the following changelog entry: * Hides the AI welcome announcement, preventing it from being displayed to users. ## Description An explanation of what is done in this PR * This PR removes the functionality that generates and displays the AI welcome announcement within the editor. It eliminates the related class imports, constants, the conditional check for AI preferences, and the entire `get_ai_announcement_data` method, ensuring that the AI onboarding popup no longer appears. ## Test instructions This PR can be tested by following these steps: * Navigate to any page or post in the Elementor editor. * Verify that the AI welcome announcement (popup) does not appear. ## 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 #ED-23215 <!--start_gitstream_placeholder--> ### ✨ PR Description Purpose: Remove AI-powered announcement popup from Elementor editor to streamline user experience and eliminate promotional interruptions. Main changes: - Removed AI announcement generation logic including get_ai_announcement_data() method and related constants - Deleted conditional check for AI feature availability in get_raw_announcements() method - Updated test assertion to verify announcements root element is no longer rendered in editor _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--> --------- Co-authored-by: ElementorBot <48412871+elementorbot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| classes | ||
| triggers | ||
| module.php | ||