-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Detailed Description
Various DID metadata properties are optional but lead to the FAIR plugin triggering PHP warnings when they're not present:
sectionsfilename(not actually part of the FAIR spec)release.requiresrelease.suggests
Expected Behavior
Metadata properties that are optional should be handled as such.
Current Behavior
PHP warnings are triggered in the following locations:
fair-plugin/inc/packages/namespace.php
Line 177 in c47e9f2
$body->sections = (array) $body->sections; fair-plugin/inc/packages/namespace.php
Line 379 in c47e9f2
foreach ( $release->requires as $pkg => $vers ) { fair-plugin/inc/packages/namespace.php
Line 388 in c47e9f2
foreach ( $release->suggests as $pkg => $vers ) { fair-plugin/inc/packages/namespace.php
Line 570 in c47e9f2
list( $slug, $file ) = explode( '/', $filename, 2 );
Steps to Reproduce
- Install a plugin which uses a FAIR metadata document that only contains the minimal fields that are required by the FAIR protocol spec.
- If you're testing with existing plugin or data you'll need to flush transients
- Trigger update checks.
- Observe PHP errors from the FAIR plugin.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done