}
$version = $data->manifest_version;
- if ( $version !== ExtensionRegistry::MANIFEST_VERSION ) {
- $schemaPath = __DIR__ . "/../../docs/extension.schema.v$version.json";
- } else {
- $schemaPath = __DIR__ . '/../../docs/extension.schema.json';
- }
+ $schemaPath = __DIR__ . "/../../docs/extension.schema.v$version.json";
// Not too old
if ( $version < ExtensionRegistry::OLDEST_MANIFEST_VERSION ) {
// All good.
return true;
} else {
- $out = "$path did pass validation.\n";
+ $out = "$path did not pass validation.\n";
foreach ( $validator->getErrors() as $error ) {
$out .= "[{$error['property']}] {$error['message']}\n";
}