[wp-trac] [WordPress Trac] #31215: wp_debug_backtrace_summary fails if args index isn't set
WordPress Trac
noreply at wordpress.org
Sat Mar 10 21:58:03 UTC 2018
#31215: wp_debug_backtrace_summary fails if args index isn't set
---------------------------+-----------------------------
Reporter: paulschreiber | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0
Component: General | Version: 3.4.1
Severity: normal | Resolution: fixed
Keywords: | Focuses:
---------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:6 paulschreiber]:
> Do you need to check `isset( $call['args'], $call['args'][0] )`? Or will
`isset( $call['args'] )` work?
Both would work, `isset()` can check deeper array values without a notice.
The commit actually checks for `$call['args'][0]`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31215#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list