We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c1b8b commit 29650e7Copy full SHA for 29650e7
src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
@@ -414,6 +414,15 @@ protected function prepare_links( $theme ) {
414
);
415
}
416
417
+ if ( $theme->is_block_theme() && $this->is_same_theme( $theme, wp_get_theme() ) ) {
418
+ $links['https://api.w.org/export-theme'] = array(
419
+ 'href' => rest_url( 'wp-block-editor/v1/export' ),
420
+ 'targetHints' => array(
421
+ 'allow' => current_user_can( 'export' ) ? array( 'GET' ) : array(),
422
+ ),
423
+ );
424
+ }
425
+
426
return $links;
427
428
0 commit comments