Changeset 38037
- Timestamp:
- 07/12/2016 11:44:33 AM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r37999 r38037 4410 4410 4411 4411 if ( !current_user_can( 'edit_posts' ) ) 4412 return new IXR_Error( 401, __( 'Sorry, you do not have access touser data on this site.' ) );4412 return new IXR_Error( 401, __( 'Sorry, you are not allowed to access user data on this site.' ) ); 4413 4413 4414 4414 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r37943 r38037 880 880 $response = $permission; 881 881 } else if ( false === $permission || null === $permission ) { 882 $response = new WP_Error( 'rest_forbidden', __( "You don't have permission to do this."), array( 'status' => 403 ) );882 $response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => 403 ) ); 883 883 } 884 884 }
Note: See TracChangeset
for help on using the changeset viewer.