[wp-trac] [WordPress Trac] #35276: Allow `comment_author_IP` and `comment_agent` keys to be updated via `wp_update_comment()`
WordPress Trac
noreply at wordpress.org
Fri Jan 1 04:45:55 UTC 2016
#35276: Allow `comment_author_IP` and `comment_agent` keys to be updated via
`wp_update_comment()`
----------------------------------------+------------------
Reporter: rachelbaker | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------
Comment (by dd32):
although there's definately use-cases where you want these to be
modifiable by a client, these are also internal values at present which
cannot be modified through any UI.
They feel like they should be set by the server based on it's called
environment and never be updated, which is probably why the code is like
it is.
For example, would you want any regular authenticated user who can comment
to be able to modify the IP or user agent that their comments are stored
as? (Note: I don't know if the REST API currently plans on limiting it
somehow)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35276#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list