Skip to content

docs: [SITE-5883][SITE-5884] Document + announce WordPress update-notice dismiss & hide controls#10166

Open
mehta-asim wants to merge 3 commits into
mainfrom
SITE-5884-suppress-update-notice-docs
Open

docs: [SITE-5883][SITE-5884] Document + announce WordPress update-notice dismiss & hide controls#10166
mehta-asim wants to merge 3 commits into
mainfrom
SITE-5884-suppress-update-notice-docs

Conversation

@mehta-asim

@mehta-asim mehta-asim commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Document how to control the Pantheon WordPress core update notice in Suppress WordPress Admin Notice: dismiss it (per-user, persists until a newer version — SITE-5883), and hide it via CSS (#pantheon-update-notice), the pantheon_show_update_notice filter, or the PANTHEON_SHOW_UPDATE_NOTICE constant (SITE-5884).
  • Correct the existing DISABLE_PANTHEON_UPDATE_NOTICES description. The old text said it "only disables the text and notice in the WordPress admin." That is inaccurate: the constant stops the plugin's update-notice handling from loading entirely, so WordPress's own default update nag can appear instead. Add a note distinguishing the cosmetic hide options from this subsystem-level opt-out.
  • Add a release note announcing the dismiss + hide controls (src/source/releasenotes/2026-07-15-wordpress-update-notice-controls.md).

Changes

File Change
src/source/content/core-updates.md Rewrote the "Suppress WordPress Admin Notice" section: dismiss + CSS/filter/constant hide options + corrected DISABLE_ behavior in an Alert
src/source/releasenotes/2026-07-15-wordpress-update-notice-controls.md New release note (categories: new-feature, wordpress)

Context

Companion to the plugin work: pantheon-systems/pantheon-mu-plugin#119 (SITE-5884: CSS hook + pantheon_show_update_notice filter + PANTHEON_SHOW_UPDATE_NOTICE constant) and pantheon-systems/pantheon-mu-plugin#121 (SITE-5883: dismissible notice), both merged.

The corrected DISABLE_ behavior was verified against the mu-plugin source and WordPress core:

  • The constant gates whether inc/pantheon-updates.php loads (pantheon.php). That file is the only place that removes WordPress's native update_nag and forces WP_AUTO_UPDATE_CORE = false.
  • WordPress core registers update_nag on admin_notices (priority 3) by default and renders it whenever a core update is available.
  • The plugin never suppresses core-update detection, so with the file unloaded the native nag is no longer removed and can render.

Blocked on release

These features are unreleased. They ship in pantheon-mu-plugin 1.5.7 (release cut by pantheon-systems/pantheon-mu-plugin#123) and reach sites when that version is bundled into the WordPress upstream. Hold this PR until then, and set the release note's published_date / published_at to the actual ship date before merging.

Test plan

  • Preview renders the "Suppress WordPress Admin Notice" section (dismiss + three hide options + the Alert).
  • Preview renders the new release note.
  • Set the release note date to the real ship date.
  • Merge only after pantheon-mu-plugin 1.5.7 ships to the WordPress upstream.

References

Document the pantheon_show_update_notice filter, the
PANTHEON_SHOW_UPDATE_NOTICE constant, and the CSS id/class hook for
hiding the Pantheon WordPress update notice. Correct the
DISABLE_PANTHEON_UPDATE_NOTICES description: it stops Pantheon's
update-notice handling from loading, so WordPress's default update nag
can appear instead. It does not simply hide the notice.
@pantheon-site-integration
pantheon-site-integration Bot temporarily deployed to pr-10166 July 13, 2026 19:51 Inactive
@pantheon-site-integration

Copy link
Copy Markdown

Successfully created multidev environment: pr-10166

Add a Dismiss the notice subsection: users can dismiss the notice with
the X; the dismissal persists per user until a newer WordPress version is
available. Companion to the SITE-5883 dismiss feature.
@pantheon-site-integration
pantheon-site-integration Bot temporarily deployed to pr-10166 July 14, 2026 20:23 Inactive
@mehta-asim mehta-asim changed the title docs(core-updates): [SITE-5884] Document update-notice hide options docs(core-updates): [SITE-5884][SITE-5883] Document update-notice dismiss + hide options Jul 14, 2026
@pantheon-site-integration

Copy link
Copy Markdown

Successfully created multidev environment: pr-10166

@mehta-asim mehta-asim added the Topic: WordPress WordPress-specific label Jul 14, 2026
…te-notice hide + dismiss

Announce the dismissible update notice (SITE-5883) and the hide options
(SITE-5884). Listing JSON is build-generated, so only the note file is
added. published_date to be aligned with the actual release.
@pantheon-site-integration

Copy link
Copy Markdown

Successfully created multidev environment: pr-10166

@mehta-asim mehta-asim added the automation: Claude 🤖 PRs that have been created by Claude via automation. Human review required. label Jul 15, 2026
@mehta-asim mehta-asim changed the title docs(core-updates): [SITE-5884][SITE-5883] Document update-notice dismiss + hide options docs: [SITE-5883][SITE-5884] Document + announce WordPress update-notice dismiss & hide controls Jul 15, 2026
@mehta-asim
mehta-asim marked this pull request as ready for review July 15, 2026 12:57
@mehta-asim
mehta-asim requested review from a team as code owners July 15, 2026 12:57
@mehta-asim
mehta-asim marked this pull request as draft July 15, 2026 15:04
@rachelwhitton
rachelwhitton marked this pull request as ready for review July 15, 2026 15:29
@rachelwhitton rachelwhitton self-assigned this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation: Claude 🤖 PRs that have been created by Claude via automation. Human review required. Topic: WordPress WordPress-specific Type: release-notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants