Skip to content

Commit

Permalink
Add missing require_once to prevent fatal error when installing plugi…
Browse files Browse the repository at this point in the history
…n via REST API.
  • Loading branch information
felixarntz committed Nov 15, 2024
1 parent c593ae6 commit e0691bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/performance-lab/includes/admin/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function perflab_validate_slug_endpoint_arg( string $slug ): bool {
* @return WP_REST_Response|WP_Error Response.
*/
function perflab_handle_feature_activation( WP_REST_Request $request ) {
require_once ABSPATH . 'wp-admin/includes/file.php';
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
Expand Down

0 comments on commit e0691bf

Please sign in to comment.