You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Suppress PHPStan argument.type at both inner call_user_func sites in static_site_importer_rest_execute_import_ability() and remove the stale outer ignore
- Re-align array double arrows in the continuation envelope, terminal envelope, and requires_ability_capable_target sub-array
- Drop the unused $input parameter from static_site_importer_rest_source_runtime() and update its 3 callers
Errors fixed:
- PHPStan argument.type at includes/rest.php:731 and includes/rest.php:743
- PHPCS WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned (15 warnings)
- PHPCS Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed (1 warning)
PHP 8.2 compatible. All CI checks passing. Refs #842
@@ -851,14 +852,14 @@ function static_site_importer_rest_url_playground_unavailable( string $url, stri
851
852
),
852
853
'input' => $input,
853
854
'preview' => array(
854
-
'status' => 'unavailable',
855
-
'url' => $url,
856
-
'message' => __( 'URL preview needs a disposable WordPress target that exposes the static-site-importer/import-url ability. The reference client must run the import inside its own ability-capable environment.', 'static-site-importer' ),
'message'=> __( 'URL preview needs a disposable WordPress target that exposes the static-site-importer/import-url ability. The reference client must run the import inside its own ability-capable environment.', 'static-site-importer' ),
'instructions' => __( 'Inside a disposable WordPress instance, register the Static Site Importer plugin and POST to /wp-json/static-site-importer/v1/imports with the same source.url and import_id, looping on the continuation envelope until terminal.', 'static-site-importer' ),
863
864
),
864
865
),
@@ -901,10 +902,9 @@ function static_site_importer_rest_source_artifact( array $source ) {
901
902
* Convert REST source input into the normalized website artifact runtime envelope.
0 commit comments