[wp-trac] [WordPress Trac] #57686: Introduce wp_trigger_error() to compliment _doing_it_wrong()
WordPress Trac
noreply at wordpress.org
Wed Sep 6 14:45:51 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 |
-------------------------------------------------+-------------------------
Comment (by costdev):
> The file and line number will reference where trigger_error() is invoked
within wp_trigger_error(), which makes debugging more difficult.
Of course it does 🙃 My bad on that!
What do you think about moving `$function_name` to be a third, optional
parameter so it's not necessary to include an empty string as the first
parameter if it's not needed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57686#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list