[wp-trac] [WordPress Trac] #34954: Comments Created Without a `comment_post_ID` Are Not Editable
WordPress Trac
noreply at wordpress.org
Thu Dec 10 15:16:55 UTC 2015
#34954: Comments Created Without a `comment_post_ID` Are Not Editable
-------------------------------------------------+-------------------------
Reporter: rachelbaker | Owner:
Type: defect (bug) | rachelbaker
Priority: normal | Status: closed
Component: Comments | Milestone: 4.5
Severity: normal | Version: 4.2
Keywords: good-first-bug has-patch has-unit- | Resolution: fixed
tests | Focuses:
| administration
-------------------------------------------------+-------------------------
Changes (by rachelbaker):
* owner: => rachelbaker
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35853"]:
{{{
#!CommitTicketReference repository="" revision="35853"
Comments: Comments don’t need no Post ID when created, so they don’t be
needing one to be edited.
In `wp_update_comment()` only check if the given `comment_post_ID` is
valid if it isn’t `0`. This allows comments that were created
programmatically via `wp_insert_comment()` without the (optional)
`comment_post_ID` parameter to be edited.
Props subharanjan for the initial patch.
Fixes #34954
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34954#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list