WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 6 weeks ago

#46267 new enhancement

Add generated_slug to REST API autosaves endpoint

Reported by: earnjam Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: REST API Keywords:
Focuses: rest-api Cc:

Description

#45017 led to adding generated_slug and permalink_template to the posts controller.

In order to facilitate more timely and accurate editing of permalinks in the new block editor, it would also be helpful to know about any unique slug conflicts by returning the generated_slug value on the autosaves endpoint as well. Otherwise we have to wait until a manual save or publish in order to check the true generated_slug value.

See https://github.com/WordPress/gutenberg/pull/12009 for work on this and this Slack comment for more details.

Change History (2)

This ticket was mentioned in Slack in #core-restapi by earnjam. View the logs.


22 months ago

#2 @TimothyBlynJacobs
6 weeks ago

I see the Gutenberg PR for this has been merged. Does this still need Core changes to the REST API?

Note: See TracTickets for help on using tickets.