[wp-trac] [WordPress Trac] #27471: wp.newComment allows to post new comments even if they are closed or not supported
WordPress Trac
noreply at wordpress.org
Fri Sep 25 20:19:21 UTC 2015
#27471: wp.newComment allows to post new comments even if they are closed or not
supported
--------------------------+-----------------------------
Reporter: xknown | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: XML-RPC | Version: 3.8.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34559"]:
{{{
#!CommitTicketReference repository="" revision="34559"
XML-RPC: Introduce the concept of unit testing to
`wp_xmlrpc_server::wp_newComment()`:
* Don't allow comments to be created for posts that have `comment_status`
set to `'closed'`
* Set some magic props on `WP_User` to vars before passing them to
`wp_xmlrpc_server::escape()`
Props wonderboymusic, jesin.
Fixes #27471.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27471#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list