We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc8653e commit 3d9fdcfCopy full SHA for 3d9fdcf
wordpress/wp-content/themes/nuepress/functions.php
@@ -47,3 +47,9 @@ function mytheme_admin_bar_render()
47
$wp_admin_bar->remove_menu('comments');
48
}
49
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