Repository navigation
Administration: Remove bold from success notices - #15773
mayankmajeji wants to merge 1 commit into
Conversation
Removes the `<strong>` wrapper from admin notices where the whole message is bold, so they match notices such as "Plugin activated." that are already plain text. This includes the wrapper in `settings_errors()`, which made every "Settings saved." notice bold. Bold labels that introduce a message, such as "Error:" or "Warning:", are unchanged. See #37280.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Removes the
<strong>wrapper from admin notices where the whole message is bold, so they match notices like "Plugin activated." that are already plain text.This refreshes the earlier patches on the ticket (props Presskopp and jpolakovic on Trac) against current trunk. Since those patches, most of these notices moved to
wp_admin_notice(), so none of the old patches apply.Changes:
settings_errors()no longer wraps every message in<strong>. This is the "Settings saved." notice on every Settings screen.user-edit.phpedit-tag-form.php(for example "Category updated.")options-general.phpnetwork/settings.phpmy-sites.phpwp_nav_menu_update_menu_items()Bold labels that introduce a message ("Error:", "Warning:", "Caution:", "For more information:") are left as they are.
Trac ticket: https://core.trac.wordpress.org/ticket/37280
Testing
Tested on WordPress 7.2-beta4-65325 (nightly), PHP 8.2.27, nginx 1.26.1, MySQL 8.0.35, Chrome on macOS. For each notice, I checked the notice markup and its computed
font-weightbefore and after the patch:<strong>, 600<strong>, 600<strong>, 600<strong>, 600<strong>, 600Not tested by hand: "User updated." (same pattern as "Profile updated." in the same file) and the three multisite notices.
Screenshots are attached to the Trac ticket.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Searching trunk for bolded notices, drafting the change, and running the before/after checks on my local install. I reviewed every line of the diff and the test results, and edited this description.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.