Skip to content

Commit

Permalink
Try POST instead of PUT for plugin activation
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Oct 4, 2024
1 parent 4fe28bb commit bfbc5fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function activatePlugin( this: RequestUtils, slug: string ) {
const plugin = getPluginFromMap( slug, pluginsMap );

await this.rest( {
method: 'PUT',
method: 'POST',
path: `/wp/v2/plugins/${ plugin }`,
data: { status: 'active' },
} );
Expand Down

0 comments on commit bfbc5fa

Please sign in to comment.