[wp-trac] [WordPress Trac] #36302: wp_update_comment needs a filter
WordPress Trac
noreply at wordpress.org
Sun Jun 19 22:55:52 UTC 2016
#36302: wp_update_comment needs a filter
-------------------------------------------+------------------------------
Reporter: frankiet | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.4.2
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+------------------------------
Comment (by frankiet):
Replying to [comment:12 rachelbaker]:
> @frankiet Can you share your use-case? I am not against adding another
filter in `wp_update_comment`, but it would be useful to understand why
the existing filters in `wp_filter_comment` and `comment_save_pre` are not
meeting your requirements.
Hi rachelbaker , i'm sorry for delayed response.
''I need to:''
- '''Add more control over the data'''
- ''' Store a revision of the comment when a comment is updated'''.
...
- {{{comment_save_pre}}} is only for comment_content (It does not include
other data).
- {{{wp_filter_comment}}} does not say if in fact I'm posting a new
comment or updating an existing comment...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36302#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list