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

WordPress Trac noreply at wordpress.org
Thu Aug 17 17:30:19 UTC 2023


#57686: Introduce wp_trigger_error() to compliment _doing_it_wrong()
-------------------------------------------+-----------------------------
 Reporter:  azaozz                         |       Owner:  hellofromTonya
     Type:  enhancement                    |      Status:  assigned
 Priority:  normal                         |   Milestone:  Future Release
Component:  General                        |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:
-------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * owner:  (none) => hellofromTonya
 * status:  new => assigned
 * milestone:  6.4 => Future Release


Comment:

 I agree with @azaozz that another level of error handling is needed rather
 than `_doing_it_wrong()`. There's a mix of approaches for handling input
 (property / parameter) validation such as ensure the incoming value / data
 is of the right type.

 An architectural proposal for handling this type of validation is being
 drafted (coming soon). I think this ticket fits nicely into that proposal.

 I'm going to move this ticket to `Future Release` until there's a
 consensus on the proposal and impacts to this scope of this ticket.

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


More information about the wp-trac mailing list