[wp-trac] [WordPress Trac] #38368: Add front-end revision browsing
WordPress Trac
noreply at wordpress.org
Wed Oct 19 21:16:31 UTC 2016
#38368: Add front-end revision browsing
-------------------------+------------------------------
Reporter: Shelob9 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui
-------------------------+------------------------------
Comment (by westonruter):
Two more concerns:
* The logic in `placeRevision` doesn't account for themes that have more
than `the_content()` in the `.entry-content` element. Twenty Sixteen also
includes the author bio here.
* Using the content as rendered by the REST API will not account for
shortcodes that contain content that is contextual based on where the
post/page appears on the site. Since the REST API call is stateless, it
won't render knowing if the content is to appear on the homepage, on an
archive, or on a singular template. This may not be specifically a concern
here if the intention is for the revisions to only be viewable on the
singular template, but it seems ideal if the revisions could be viewed
anywhere the post appears on a site.
Sorry to keep harping on this, but these are all challenges we've been
working hard on in the customizer with changesets, selective refresh, and
the Customize Posts feature plugin.
I think there definitely is a place for using the REST API here, and that
is to get the `raw` data. The responsibility to `render` the data,
however, I feel should be left to the customizer.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38368#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list