[wp-trac] [WordPress Trac] #24525: New revisions code should use wp_revisions_enabled() rather than referencing the WP_POST_REVISIONS constant
WordPress Trac
noreply at wordpress.org
Fri Jun 7 00:22:52 UTC 2013
#24525: New revisions code should use wp_revisions_enabled() rather than
referencing the WP_POST_REVISIONS constant
--------------------------+-----------------------------
Reporter: ethitter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: trunk
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
With the changes made as part of #22289, the `WP_POST_REVISIONS` constant
is no longer the definitive indicator that revisions are enabled,
`wp_revisions_enabled()` is.
r23769 introduced a reference to the constant in `wp-admin/revision.php`
as `wp_revisions_enabled()` didn't exist yet. The attached patch replaces
the reference to the constant and the check that the current post type
supports revisions, as `wp_revisions_enabled()` handles both checks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24525>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list