Make WordPress Core


Ignore:
Timestamp:
07/12/2016 11:44:33 AM (9 years ago)
Author:
ocean90
Message:

Text Changes: Unify/merge two more permission error messages.

Props ramiy.
Fixes #34521.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r37943 r38037  
    880880                            $response = $permission;
    881881                        } 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 ) );
    883883                        }
    884884                    }
Note: See TracChangeset for help on using the changeset viewer.