[wp-trac] [WordPress Trac] #30009: _wp_put_post_revision checks for errors incorrectly
WordPress Trac
noreply at wordpress.org
Fri May 21 19:51:51 UTC 2021
#30009: _wp_put_post_revision checks for errors incorrectly
---------------------------------------------+-----------------------------
Reporter: rmccue | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.8
Component: Revisions | Version: 2.6
Severity: minor | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Comment (by adamsilverstein):
[attachment:"30009.5.diff"] includes a test to verify a WP_Error is
returned now. I was able to trigger an error by passing an invalid post ID
directly to the inner function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30009#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list