- Timestamp:
- 12/04/2016 07:29:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r39457 r39487 393 393 */ 394 394 $allow_anonymous = apply_filters( 'rest_allow_anonymous_comments', false, $request ); 395 if ( false ===$allow_anonymous ) {395 if ( ! $allow_anonymous ) { 396 396 return new WP_Error( 'rest_comment_login_required', __( 'Sorry, you must be logged in to comment.' ), array( 'status' => 401 ) ); 397 397 }
Note: See TracChangeset
for help on using the changeset viewer.