Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57686, comment 17


Ignore:
Timestamp:
09/06/2023 02:49:54 PM (3 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57686, comment 17

    initial v1  
    33Of course it does 🙃 My bad on that!
    44
    5 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?
     5What 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? This would be closer to PHP's native `trigger_error()` also.
     6
     7Sort of a difference between:
     8 Trigger an error from `$function_name` with this `$message` and `$error_level`.
     9and
     10 Trigger an error with this `$message` and `$error_level` from `$function_name`.