[wp-trac] [WordPress Trac] #59636: Add meta to the revisions screen

WordPress Trac noreply at wordpress.org
Mon Oct 16 18:52:31 UTC 2023


#59636: Add meta to the revisions screen
-----------------------------+-----------------------------
 Reporter:  adamsilverstein  |      Owner:  adamsilverstein
     Type:  enhancement      |     Status:  assigned
 Priority:  normal           |  Milestone:  6.5
Component:  Revisions        |    Version:  trunk
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+-----------------------------
 This ticket is a follow up to #20564 where we added opt-in support for
 meta revisions.

 When meta is opted in to revisions, either at registration or using a
 filter, and stored as part of the revision storage, we should display that
 meta value on the revisions screen.

 This core code would replace the filtered in display to the footer meta
 added by Gutenberg -
 [https://github.com/WordPress/gutenberg/blob/3e260aa41d3c50684efac9728bdbba918658d131/packages
 /block-library/src/footnotes/index.php#L92-L120
 WordPress/gutenberg at 3e260aa/packages/block-
 library/src/footnotes/index.php#L92-L120].

 Plugins can still overwrite the default display using the
 _wp_post_revision_field_{$meta_key} filter, the point of the change is
 that any revisioned value will be displayed by default.

 This display is already covered by Gutenberg's
 [https://github.com/WordPress/gutenberg/blob/58064cc591e2c3ca40538193c110336a5805fe19/test/e2e/specs/editor/various/footnotes.spec.js#L290-L391
 "works with revisions" E2E test], this test should continue to pass even
 after this
 [https://github.com/WordPress/gutenberg/blob/58064cc591e2c3ca40538193c110336a5805fe19/packages
 /block-library/src/footnotes/index.php#L92-L120 filter code] is removed
 from Gutenberg. We can easily bring those tests over for core as well now
 that we use the same testing framework.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59636>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list