Docs: Add a @since note to edit_comment() about the new return value.

Follow-up to [48154].

See #39732.
Built from https://develop.svn.wordpress.org/trunk@48223


git-svn-id: http://core.svn.wordpress.org/trunk@47992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-30 01:04:03 +00:00
parent b9d52142c8
commit 0a805dbee6
2 changed files with 5 additions and 1 deletions

View File

@ -45,6 +45,10 @@ function comment_exists( $comment_author, $comment_date, $timezone = 'blog' ) {
* Update a comment with values provided in $_POST.
*
* @since 2.0.0
* @since 5.5.0 A return value was added.
*
* @return int|WP_Error The value 1 if the comment was updated, 0 if not updated.
* A WP_Error object on failure.
*/
function edit_comment() {
if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-48222';
$wp_version = '5.5-alpha-48223';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.