[wp-trac] [WordPress Trac] #38816: REST API: logic error in comments post ID

WordPress Trac noreply at wordpress.org
Fri Nov 18 16:55:05 UTC 2016


#38816: REST API: logic error in comments post ID
----------------------------------------+--------------------------
 Reporter:  dd32                        |       Owner:  rachelbaker
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  4.7
Component:  Comments                    |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+--------------------------
Changes (by rachelbaker):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39288"]:
 {{{
 #!CommitTicketReference repository="" revision="39288"
 REST API: On comment create, return an error if the `post` parameter does
 not relate to a valid WP_Post object.

 Return a `WP_Error` object for attempts to create a comment without an
 empty or invalid `post` ID.

 Props dd32, jnylen0, rachelbaker.
 Fixes #38816.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38816#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list