Skip to content

Commit 3932873

Browse files
committed
Show widget details in REST API to allow Legacy Widget block usage
1 parent cfa27c7 commit 3932873

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

includes/class-hcard-author-widget.php

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct() {
1818
array(
1919
'classname' => 'hcard_widget',
2020
'description' => __( 'A widget that allows you to display author profile marked up as an h-card', 'indieweb' ),
21+
'show_instance_in_rest' => true,
2122
)
2223
);
2324
} // end constructor

includes/class-relme-widget.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function __construct() {
1414
__( 'Show My Profiles on Other Sites', 'indieweb' ),
1515
array(
1616
'description' => __( 'Adds automatic rel-me URLs based on default author profile information. Rel=me links are links to your presence on other websites and visually appear like many social link widgets', 'indieweb' ),
17+
'show_instance_in_rest' => true,
1718
)
1819
);
1920
if ( ! is_active_widget( false, false, $this->id_base ) ) {

0 commit comments

Comments
 (0)