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

WordPress Trac noreply at wordpress.org
Tue Sep 26 11:29: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):

 https://github.com/WordPress/wordpress-develop/pull/5303 implements
 @costdev's approach to use `wp_kses()` and @flixos90 approach to document
 extenders need to escape disallowed HTML first before passing to the
 function.

 https://github.com/WordPress/wordpress-develop/pull/5161 replaces the
 `trigger_error()` instances with `wp_trigger_error()` in the
 `_deprecated_*()` and `_doing_it_wrong()` functions.

 These 2 patches accomplish the goals of the discussions in this ticket and
 the consensus and compromises made.

 I'll go ahead and commit https://github.com/WordPress/wordpress-
 develop/pull/5161.

 @flixos90 @costdev can you please review https://github.com/WordPress
 /wordpress-develop/pull/5303 for commit ahead of today's Beta 1.

 Thank you everyone!

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


More information about the wp-trac mailing list