Skip to content

Unify notices#4242

Merged
johngodley merged 1 commit into
trunkfrom
update/notices
Jul 4, 2026
Merged

Unify notices#4242
johngodley merged 1 commit into
trunkfrom
update/notices

Conversation

@johngodley

Copy link
Copy Markdown
Owner

Make sure Redirection notices are always shown on Redirection pages, and other notices are not shown. This should help reduce other plugins hiding Redirection notices on it's own admin pages, while hiding other plugin notices on the same page.

Make sure Redirection notices are always shown on Redirection pages, and other notices are not shown
Copilot AI review requested due to automatic review settings July 4, 2026 06:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes admin notice visibility on Redirection admin pages by ensuring Redirection-owned notices reliably display while other plugin notices are hidden, reducing UI interference from third-party admin notice behavior.

Changes:

  • Adds a redirection-notice CSS class to Redirection-rendered notices (PHP + React) so they can be explicitly allowed.
  • Updates Redirection page SCSS to show only allowlisted notices (redirection-notice / wpl-notice) and hide all other .notice / .update-nag elements on those pages.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/page/home/style.scss Adds allowlist/denylist rules to display Redirection-owned notices and hide other notices on Redirection pages.
src/component/redirect-edit/warning.tsx Marks redirect-edit warning notices with redirection-notice so they remain visible under the new CSS rules.
redirection-admin.php Marks PHP-rendered update nag / error notices with redirection-notice so they remain visible under the new CSS rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@johngodley johngodley merged commit 81af241 into trunk Jul 4, 2026
9 checks passed
@johngodley johngodley deleted the update/notices branch July 4, 2026 06:14
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