- Timestamp:
- 12/30/2017 08:36:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r42343 r42421 916 916 $response = $permission; 917 917 } elseif ( false === $permission || null === $permission ) { 918 $response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => 403) );918 $response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => rest_authorization_required_code() ) ); 919 919 } 920 920 }
Note: See TracChangeset
for help on using the changeset viewer.