WordPress.org

Make WordPress Core

Changeset 48556


Ignore:
Timestamp:
07/21/2020 09:59:46 PM (2 months ago)
Author:
SergeyBiryukov
Message:

REST API: Use consistent error messages when managing network plugins.

Props ramiy.
Fixes #50729.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php

    r48242 r48556  
    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            );
Note: See TracChangeset for help on using the changeset viewer.