[wp-trac] [WordPress Trac] #57320: Revisions: add filter before deleting revisions
WordPress Trac
noreply at wordpress.org
Tue Feb 7 18:13:25 UTC 2023
#57320: Revisions: add filter before deleting revisions
-------------------------------------------------+-------------------------
Reporter: jhned | Owner: audrasjb
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.2
Component: Revisions | Version:
Severity: trivial | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses:
needs-dev-note | administration
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* status: closed => reopened
* version: trunk =>
* resolution: fixed =>
Comment:
I don't think there's a need to use a doing it wrong message here,
especially as it introduces a new localised string that's practically
never going to be used. There's an inherent expectation in WordPress that
filters return the correct type, and casting to an array is probably
sufficient here. Let's not add unnecessary burden to translators.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57320#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list