Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #54149, comment 9


Ignore:
Timestamp:
11/05/2021 01:42:09 AM (5 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54149, comment 9

    v1 v2  
    77 - WP_Comment / array - the usual expected value, truthy.
    88 - Something else from a function filtering it. These break down to:
    9    - Code errors returning true, arrays, or objects that are not at all like WP_Comments, these are code errors on the developers that shouldn't need to be cared about
     9   - Code errors returning true, half-filled arrays or malformed arrays, or objects that are not at all like WP_Comments, these are code errors on the developers that shouldn't need to be cared about
    1010   - Something Comment-like, I've seen plugins return "fake" comments that are just `stdClass` (from before WP_Comment existed) that for all intents and purposes are comment-like enough.
    1111