From 906624c4ec38505dd33701a605584b5adc1df9e9 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Mon, 24 Nov 2025 22:14:58 +0100 Subject: [PATCH] Rename minifair to FAIR Beacon Signed-off-by: Joost de Valk --- inc/packages/admin/info.php | 13 +++++++++++-- inc/packages/namespace.php | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/inc/packages/admin/info.php b/inc/packages/admin/info.php index d42610b6..3cec0f5c 100644 --- a/inc/packages/admin/info.php +++ b/inc/packages/admin/info.php @@ -170,7 +170,12 @@ function render( MetadataDocument $doc, string $tab, string $section ) {
$content ) { $prepared = sanitize_html( $content ); $prepared = links_add_target( $prepared, '_blank' ); @@ -478,7 +483,11 @@ function render_alias_notice( DIDDocument $did ) : bool { '%s', esc_html__( 'Validation failed', 'fair' ) ); - add_action( 'minifair.render.notices', function () use ( $validation ) { + + // For backwards compatibility. + do_action_deprecated( 'minifair.render.notices', [ $validation ], '1.2', 'fair_beacon.render.notices' ); + + add_action( 'fair_beacon.render.notices', function () use ( $validation ) { wp_admin_notice( sprintf( /* translators: %s: validation error message */ diff --git a/inc/packages/namespace.php b/inc/packages/namespace.php index 1e8fe7f6..6bf5b586 100644 --- a/inc/packages/namespace.php +++ b/inc/packages/namespace.php @@ -189,7 +189,7 @@ function fetch_metadata_doc( string $url ) { * Fetch Metadata from local source. * * Solves issue where Metadata source is from same site. - * Mini-FAIR REST endpoint may time out under these circumstances. + * FAIR-Beacon REST endpoint may time out under these circumstances. * Directly calling the WP_REST_Request does not return complete data. * * @param bool|array $response Response from cache.