Make WordPress Core

Ticket #34521: 34521-one-more-permission-string.patch

File 34521-one-more-permission-string.patch, 702 bytes (added by ramiy, 7 years ago)

update permission string

  • wp-includes/rest-api/class-wp-rest-server.php

     
    879879                                                if ( is_wp_error( $permission ) ) {
    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                                        }
    885885                                }