[wp-trac] [WordPress Trac] #22289: Filter to override WP_POST_REVISIONS (or define it later)
WordPress Trac
noreply at wordpress.org
Wed Jan 23 12:00:29 UTC 2013
#22289: Filter to override WP_POST_REVISIONS (or define it later)
-------------------------------------+--------------------
Reporter: batmoo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Revisions | Version: 3.4.2
Severity: normal | Resolution:
Keywords: needs-patch westi-likes |
-------------------------------------+--------------------
Comment (by dd32):
> While it'd be "nice" and "cleaner" to have a filter for this in core it
seems low priority with a good working plugin addressing it.
The above plugin is mine, and a filter is dearly needed for this.. While I
managed to get it working reasonably well, it wasn't exactly the nicest
thing to do.
Remember that with constants, only one place can define them (a single
plugin, or the wp-config file, etc) leading to many compatibility
problems.
A number of plugins over time have also been known to define the number of
revisions to store which caused havok for some users, bad plugins, which
were fixed, but still shows problems exist.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22289#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list