Make WordPress Core

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


Ignore:
Timestamp:
09/06/2023 02:53:57 PM (9 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57686, comment 17

    v1 v2  
    11> The file and line number will reference where trigger_error() is invoked within wp_trigger_error(), which makes debugging more difficult.
    22
    3 Of course it does 🙃 My bad on that!
     3Of course it does My bad on that!
    44
    55What 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.
     
    99and
    1010 Trigger an error with this `$message` and `$error_level` from `$function_name`.
     11
     12It's not a big deal either way, just throwing it out there for discussion 🙂