Ticket #50729: 50729.patch
File 50729.patch, 785 bytes (added by , 4 years ago) |
---|
-
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
640 640 if ( is_multisite() && ( 'network-active' === $current_status || 'network-active' === $new_status ) && ! current_user_can( 'manage_network_plugins' ) ) { 641 641 return new WP_Error( 642 642 'rest_cannot_manage_network_plugins', 643 __( 'Sorry, you do not have permissionto manage network plugins.' ),643 __( 'Sorry, you are not allowed to manage network plugins.' ), 644 644 array( 'status' => rest_authorization_required_code() ) 645 645 ); 646 646 }