Add installer for FAIR protocol (#71)

Signed-off-by: Ryan McCue <me@ryanmccue.info>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Signed-off-by: Joe Dolson <design@joedolson.com>
Co-authored-by: Andy Fragen <andy@thefragens.com>
Co-authored-by: costdev <79332690+costdev@users.noreply.github.com>
Co-authored-by: Joe Dolson <design@joedolson.com>
This commit is contained in:
Ryan McCue 2025-07-27 17:37:50 +01:00 committed by GitHub
parent fede6b6413
commit 9ce4b13d15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 2406 additions and 29 deletions

View file

@ -9,6 +9,8 @@ namespace FAIR\Icons;

use const FAIR\PLUGIN_FILE;

use stdClass;

/**
* Bootstrap
*/
@ -24,6 +26,11 @@ function bootstrap() {
* @return stdClass
*/
function set_default_icon( $transient ) {
// The transient may not be set yet.
if ( ! is_object( $transient ) ) {
$transient = new stdClass();
}

if ( ! property_exists( $transient, 'response' ) ) {
return $transient;
}