Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Built from https://develop.svn.wordpress.org/trunk@39288 git-svn-id: http://core.svn.wordpress.org/trunk@39228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information
1 parent
10bddfa
commit 735fa34
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters