WordPress.org

Make WordPress Core

Ticket #39013: 39013.patch

File 39013.patch, 671 bytes (added by ramiy, 3 years ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

     
    446446                }
    447447
    448448                if ( ! comments_open( $post->ID ) ) {
    449                         return new WP_Error( 'rest_comment_closed', __( 'Sorry, comments are closed on this post.' ), array( 'status' => 403 ) );
     449                        return new WP_Error( 'rest_comment_closed', __( 'Sorry, comments are closed for this item.' ), array( 'status' => 403 ) );
    450450                }
    451451
    452452                return true;