[wp-meta] [Making WordPress.org] #2668: Replies to internal notes have the wrong comment type
Making WordPress.org
noreply at wordpress.org
Sat Apr 1 10:32:56 UTC 2017
#2668: Replies to internal notes have the wrong comment type
------------------------------+-----------------------------------
Reporter: ocean90 | Owner:
Type: defect | Status: new
Priority: high | Milestone: Plugin Directory v3.0
Component: Plugin Directory | Keywords: needs-patch
------------------------------+-----------------------------------
`WordPressdotorg\Plugin_Directory\Admin\Customizations::save_custom_comment()`
(or `wp_ajax_replyto_comment()` sets the type if `$_POST['comment_type']`
is set but `wp_comment_reply()` doesn't define a `comment_type` field.
To make it work on edit.php and edit-comments.php we could add a check to
`preprocess_comment` which sets `comment_type` if
`$commentdata['comment_parent']` is an ID for an internal note.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2668>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list