[wp-trac] [WordPress Trac] #39732: Allowing wp_update_comment() to return WP_Error
WordPress Trac
noreply at wordpress.org
Sun Jun 28 22:08:37 UTC 2020
#39732: Allowing wp_update_comment() to return WP_Error
-------------------------------------------------+-------------------------
Reporter: enrico.sorcinelli | Owner:
| enrico.sorcinelli
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: Comments | Version: 4.8
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note commit |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"48208" 48208]:
{{{
#!CommitTicketReference repository="" revision="48208"
Comments: Rename the `$avoid_die` parameter of `wp_allow_comment()` and
`wp_new_comment()` to `$wp_error`.
This makes the function signatures more consistent with
`wp_update_comment()` and `wp_set_comment_status()`.
`wp_check_comment_flood()` is left as the only function with the
`$avoid_die` parameter for now, as it does not return a `WP_Error` object.
Follow-up to [48154], [48207].
See #39732.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39732#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list