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:
parent
b9d52142c8
commit
0a805dbee6
|
@ -45,6 +45,10 @@ function comment_exists( $comment_author, $comment_date, $timezone = 'blog' ) {
|
||||||
* Update a comment with values provided in $_POST.
|
* Update a comment with values provided in $_POST.
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @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() {
|
function edit_comment() {
|
||||||
if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) {
|
if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue