Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions inc/packages/admin/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ function render( MetadataDocument $doc, string $tab, string $section ) {
<div id="section-holder">
<?php
add_requirement_notices( $latest );
do_action( 'minifair.render.notices', $doc, $tab, $section );

// For backwards compatibility.
do_action_deprecated( 'minifair.render.notices', [ $doc, $tab, $section ], '1.2', 'fair_beacon.render.notices' );

do_action( 'fair_beacon.render.notices', $doc, $tab, $section );

foreach ( $sections as $section_id => $content ) {
$prepared = sanitize_html( $content );
$prepared = links_add_target( $prepared, '_blank' );
Expand Down Expand Up @@ -478,7 +483,11 @@ function render_alias_notice( DIDDocument $did ) : bool {
'<strong>%s</strong>',
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 */
Expand Down
2 changes: 1 addition & 1 deletion inc/packages/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down