Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56198, comment 5


Ignore:
Timestamp:
07/11/2022 10:03:49 PM (2 years ago)
Author:
malthert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56198, comment 5

    initial v1  
    1212===
    1313
     14Regarding debug_backtrace:
     15adding a limit of 2 and removing args will take care of the performance issues:
     16`debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 )[1]['function'];`
     17This is sufficiently fast (e-6 seconds).
     18
     19The only other option would be to pass `__FUNCTION__` as a 2nd param to `_valid_key`, which I think is dumb.
     20
     21===
     22
    1423`if ( is_string( $key ) && trim( $key ) !== '' ) {`
    1524