[wp-trac] [WordPress Trac] #23901: Revisions: revisions.js clean up
WordPress Trac
noreply at wordpress.org
Thu Apr 4 11:43:51 UTC 2013
#23901: Revisions: revisions.js clean up
--------------------------+--------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Revisions | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by kovshenin):
Indeed, {{{ Diff.rightDiff === Diff.revisions.length }}} is not the best
way to toggle the "Restore" button visibility, since the last revision is
not always the current one. [attachment:23901.5.diff] adds a new
`is_current_revision` property to the `Revision` model, and uses it to
determine the "Restore" button display.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23901#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list