[wp-trac] [WordPress Trac] #57686: Introduce wp_trigger_error() to compliment _doing_it_wrong()

WordPress Trac noreply at wordpress.org
Tue Sep 12 18:07:50 UTC 2023


#57686: Introduce wp_trigger_error() to compliment _doing_it_wrong()
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:
                                                 |  hellofromTonya
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.4
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-dev-note has-patch has-unit-   |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 To escape or not escape `trigger_error()` messages:

 IMO the discussion of escaping `trigger_error()` messages is beyond the
 scope of this ticket.

 Why? Core does not and has not escaped messages or parts of a message
 passed to its instances of `trigger_error()`. This includes in the
 `_deprecated_*()` functions or `_doing_it_wrong()`. Thus a change here in
 this ticket impacts those messages.

 If there's a desire to continue the escaping discussion, I'd suggest
 opening a new Trac ticket. BTW I do think it's a good discussion, one to
 have.

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


More information about the wp-trac mailing list