Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#24525 closed defect (bug) (fixed)

New revisions code should use wp_revisions_enabled() rather than referencing the WP_POST_REVISIONS constant

Reported by: ethitter's profile ethitter Owned by: nacin's profile nacin
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Revisions Keywords: has-patch
Focuses: Cc:

Description

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.

Attachments (1)

24525.patch (511 bytes) - added by ethitter 12 years ago.

Download all attachments as: .zip

Change History (3)

@ethitter
12 years ago

#1 @nacin
12 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 24425:

Use wp_revisions_enabled(). props ethitter. fixes #24525.

#2 @nacin
12 years ago

  • Milestone changed from Awaiting Review to 3.6
Note: See TracTickets for help on using tickets.