mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 20:09:53 +01:00
In order for clients to present permalink previews, the REST API must share the computed results of `get_sample_permalink()`. These two values are now exposed as `permalink_template` and `generated_slug` for public, viewable post types, but only for `context=edit`. Props danielbachhuber, rahulsprajapati. Fixes #45017. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43720 602fd350-edb4-49c9-b593-d223f7449a82