mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-13 00:57:06 +08:00
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:
parent
fede6b6413
commit
9ce4b13d15
17 changed files with 2406 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue