Make WordPress Core

Ticket #50729: 50729.patch

File 50729.patch, 785 bytes (added by ramiy, 4 years ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php

     
    640640                if ( is_multisite() && ( 'network-active' === $current_status || 'network-active' === $new_status ) && ! current_user_can( 'manage_network_plugins' ) ) {
    641641                        return new WP_Error(
    642642                                'rest_cannot_manage_network_plugins',
    643                                 __( 'Sorry, you do not have permission to manage network plugins.' ),
     643                                __( 'Sorry, you are not allowed to manage network plugins.' ),
    644644                                array( 'status' => rest_authorization_required_code() )
    645645                        );
    646646                }