[wp-trac] [WordPress Trac] #24782: Revisions: Re-think the way how the current revision is detected
WordPress Trac
noreply at wordpress.org
Mon Jul 22 05:05:00 UTC 2013
#24782: Revisions: Re-think the way how the current revision is detected
------------------------------------------+---------------------
Reporter: ocean90 | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.6
Component: Revisions | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit 2nd-opinion |
------------------------------------------+---------------------
Comment (by nacin):
Note:
{{{
// If a post has been saved since the last revision (no revisioned
fields were changed)
// we may not have a "current" revision. Mark the latest revision
as "current".
if ( empty( $current_id ) )
$revisions[ $revision->ID ]['current'] = true;
}}}
... being added in #24804 (first appearance is .9.diff).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24782#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list