[wp-trac] [WordPress Trac] #57686: Introduce wp_trigger_error() to compliment _doing_it_wrong()
WordPress Trac
noreply at wordpress.org
Wed Aug 30 19:54:55 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-patch needs-unit-tests needs- | Focuses:
dev-note |
-------------------------------------------------+-------------------------
Comment (by flixos90):
Sounds reasonable to me. So for now that function would simply be
something like the following I assume?
{{{#!php
<?php
function wp_trigger_error( $message, $error_level = E_USER_NOTICE ) {
if ( ! WP_DEBUG ) {
return;
}
trigger_error( $message, $error_level );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57686#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list