Changeset 50046 for branches/5.6/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
- Timestamp:
- 01/28/2021 12:33:28 AM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
r48641 r50046 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.