[wp-trac] [WordPress Trac] #50241: Cannot publish the post using Gutenberg after changing REST URL prefix
WordPress Trac
noreply at wordpress.org
Mon May 25 07:21:28 UTC 2020
#50241: Cannot publish the post using Gutenberg after changing REST URL prefix
--------------------------------------+-----------------------------
Reporter: ibachal | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords: has-screenshots
Focuses: administration, rest-api |
--------------------------------------+-----------------------------
When I change REST URL prefix to something different "my-api" for example,
using "rest_url_prefix" filter hook then it breaks the Gutenberg post save
functionality because Gutenberg uses default "wp-json" REST URL prefix for
API interactions.
Possible solution: Use "rest_get_url_prefix()" function to get URL prefix
instead of "wp-json".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50241>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list