- Timestamp:
- 01/09/2021 08:20:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
r48641 r49952 210 210 */ 211 211 protected function check_read_permission( $plugin ) { 212 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 213 212 214 if ( ! $this->is_plugin_installed( $plugin ) ) { 213 215 return new WP_Error( 'rest_plugin_not_found', __( 'Plugin not found.' ), array( 'status' => 404 ) );
Note: See TracChangeset
for help on using the changeset viewer.