Skip to content

Commit 35a4c22

Browse files
General: Use wp_trigger_error() in _doing_it_wrong() and _deprecated_*().
Uses `wp_trigger_error()` in `_doing_it_wrong()` and each `_deprecated_*()` function, i.e. instead of `trigger_error()`. To avoid redundancy, uses `wp_trigger_error()` once. How? Saves each message to `$message` variable and then passes it to `wp_trigger_error()` at the end of the function. Functions: * _doing_it_wrong() * _deprecated_function() * _deprecated_constructor() * _deprecated_class() * _deprecated_file() * _deprecated_argument() * _deprecated_hook() Follow-up to [56530]. Props azaozz, costdev, flixos90, hellofromTonya, peterwilsoncc. See #57686. git-svn-id: https://develop.svn.wordpress.org/trunk@56705 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0514b2e commit 35a4c22

File tree

1 file changed

+145
-203
lines changed

1 file changed

+145
-203
lines changed

0 commit comments

Comments
 (0)