Skip to content

Commit 3d9fdcf

Browse files
committed
fix: gutenberg error
1 parent bc8653e commit 3d9fdcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wordpress/wp-content/themes/nuepress/functions.php

+6
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ function mytheme_admin_bar_render()
4747
$wp_admin_bar->remove_menu('comments');
4848
}
4949
add_action('wp_before_admin_bar_render', 'mytheme_admin_bar_render');
50+
51+
// https://github.com/WordPress/gutenberg/issues/1761#issuecomment-412876340
52+
add_filter('rest_url', function ($url) {
53+
$url = str_replace(home_url(), site_url(), $url);
54+
return $url;
55+
});

0 commit comments

Comments
 (0)