[wp-trac] [WordPress Trac] #47952: create_and_get() doesn't consider that create() can return a WP_Error
WordPress Trac
noreply at wordpress.org
Fri Aug 30 14:53:18 UTC 2019
#47952: create_and_get() doesn't consider that create() can return a WP_Error
------------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-----------------------------
The `create_and_get()` methods in the test suite don't check the return
value of the `create()` method. It can return a `WP_Error`, for example
when attempting to create a term in a taxonomy that doesn't exist, which
causes PHP errors when subsequently attempting to get the object.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47952>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list