WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40568, comment 11


Ignore:
Timestamp:
09/11/2020 08:18:17 PM (13 months ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40568, comment 11

    initial v1  
    55The primary reason I'd like to track `WP_Error` objects is to find ones which "disappear", eg. by being turned into boolean false as they bubble up. If the end result is boolean false, there can often be a more descriptive `WP_Error` further down the stack.
    66
    7 My plan for my Query Monitor plugin is to only log data about `is_wp_error()` calls when the parameter is an error, hence the `$is` parameter that I added. It simply don't do anything when the "thing" isn't an error.
     7My plan for my Query Monitor plugin is to only log data about `is_wp_error()` calls when the parameter is an error, hence the `$is` parameter that I added. It simply won't do anything when the "thing" isn't an error.