- Timestamp:
- 12/30/2017 08:48:10 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/rest-api/class-wp-rest-server.php
r41223 r42422 909 909 $response = $permission; 910 910 } elseif ( false === $permission || null === $permission ) { 911 $response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => 403) );911 $response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => rest_authorization_required_code() ) ); 912 912 } 913 913 }
Note: See TracChangeset
for help on using the changeset viewer.