[wp-trac] [WordPress Trac] #61896: Allow custom errors with correct HTML class for `edit-tag-form.php`
WordPress Trac
noreply at wordpress.org
Tue Aug 20 17:48:24 UTC 2024
#61896: Allow custom errors with correct HTML class for `edit-tag-form.php`
--------------------------+------------------------------
Reporter: xipasduarte | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: administration
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"58918" 58918]:
{{{
#!CommitTicketReference repository="" revision="58918"
Taxonomy: Correct the check for error messages in `wp-admin/edit-tag-
form.php`.
Instead of checking for a specific message, e.g. “Item not updated”, the
`$_REQUEST['error']` variable is now checked. This allows for custom
messages added via the `term_updated_messages` filter to be considered an
error when appropriate, and displayed with the correct CSS class.
This also brings consistency with a similar check in `wp-admin/edit-
tags.php`.
Follow-up to [31823], [44663].
Props xipasduarte.
Fixes #61896.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61896#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list