[wp-trac] [WordPress Trac] #64311: Add filters for input and output validation

WordPress Trac noreply at wordpress.org
Thu May 21 10:27:52 UTC 2026


#64311: Add filters for input and output validation
-------------------------------------------------+-------------------------
 Reporter:  priethor                             |       Owner:  priethor
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  7.1
Component:  Abilities API                        |     Version:  6.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by gziolo):

 In [changeset:"62401" 62401]:
 {{{
 #!CommitTicketReference repository="" revision="62401"
 Abilities API: Stop HTML-escaping the ability name in WP_Error messages

 Ability names are pattern-validated at registration, so `esc_html()` on
 them is always a no-op. Drop it from the `WP_Error` messages, which are
 commonly serialized to JSON where the escaping would be incorrect.

 Follow-up to [62398].
 See #64311.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64311#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list