[wp-trac] [WordPress Trac] #51550: Revisions: Add a post type-specific filter to `wp_revisions_to_keep()`
WordPress Trac
noreply at wordpress.org
Fri Apr 30 17:41:35 UTC 2021
#51550: Revisions: Add a post type-specific filter to `wp_revisions_to_keep()`
-------------------------+------------------------------
Reporter: dlh | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by adamsilverstein):
Thanks for the patch @dlh - looks good. The only think I would add is a
note on the doc block indicating that the filter also overrides the
existing `wp_revisions_to_keep` filter when used.
In addition, some basic unit tests to confirm both of these filters works
as expected would be a good addition.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51550#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list