WordPress.org

Make WordPress Core

Changeset 39508


Ignore:
Timestamp:
12/05/16 20:15:09 (4 months ago)
Author:
ocean90
Message:

Comments: Merge a similar string between comments.php, XML-RPC and the REST API comments controller.

Props ramiy.
Fixes #39013.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r39488 r39508  
    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 
Note: See TracChangeset for help on using the changeset viewer.