Skip to content

mu-plugin in playground to disable REST API auth #94

mu-plugin in playground to disable REST API auth

mu-plugin in playground to disable REST API auth #94

Triggered via pull request September 10, 2024 12:17
Status Failure
Total duration 1m 12s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 5 warnings
lint: src/ui/preview/Playground.tsx#L104
Replace `"step":·"writeFile"` with `step:·'writeFile'`
lint: src/ui/preview/Playground.tsx#L105
Replace `"path":·"wordpress/wp-content/mu-plugins/addFilter-1.php"` with `path:·'wordpress/wp-content/mu-plugins/addFilter-1.php'`
lint: src/ui/preview/Playground.tsx#L106
Replace `"data":·"<?php·require_once·'wordpress/wp-load.php';·add_filter(·'determine_current_user',·function(·$user_id·)·{·return·1;·},·99999,·1·);·?>"` with `data:·"<?php·require_once·'wordpress/wp-load.php';·add_filter(·'determine_current_user',·function(·$user_id·)·{·return·1;·},·99999,·1·);·?>",`
lint: src/ui/preview/Playground.tsx#L107
Insert `,`
lint
Process completed with exit code 1.
lint: src/api/ApiClient.ts#L3
PlaygroundClient not found in '@wp-playground/client'
lint: src/ui/preview/Playground.tsx#L3
PlaygroundClient not found in '@wp-playground/client'
lint: src/ui/preview/Playground.tsx#L4
StartPlaygroundOptions not found in '@wp-playground/client'
lint: src/ui/preview/Playground.tsx#L6
StepDefinition not found in '@wp-playground/client'
lint: src/ui/session/ViewSession.tsx#L17
React Hook useEffect has a missing dependency: 'apiClient'. Either include it or remove the dependency array