<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[24578] trunk: Revisions improvements</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/24578">24578</a></dd>
<dt>Author</dt> <dd>ocean90</dd>
<dt>Date</dt> <dd>2013-07-06 10:48:14 +0000 (Sat, 06 Jul 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Revisions improvements

* Corrected routing behavior
* Simplified CSS for tooltips
* Compare two mode for RTL
* Support for posts without titles 

props adamsilverstein, ocean90. see <a href="http://core.trac.wordpress.org/ticket/24425">#24425</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsscolorsclassiccss">trunk/wp-admin/css/colors-classic.css</a></li>
<li><a href="#trunkwpadmincsscolorsfreshcss">trunk/wp-admin/css/colors-fresh.css</a></li>
<li><a href="#trunkwpadmincsswpadmincss">trunk/wp-admin/css/wp-admin.css</a></li>
<li><a href="#trunkwpadminincludesrevisionphp">trunk/wp-admin/includes/revision.php</a></li>
<li><a href="#trunkwpadminjsrevisionsjs">trunk/wp-admin/js/revisions.js</a></li>
<li><a href="#trunkwpadminrevisionphp">trunk/wp-admin/revision.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsscolorsclassiccss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-classic.css (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-classic.css    2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-admin/css/colors-classic.css       2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -1485,7 +1485,8 @@
</span><span class="cx">  border: 1px solid #d1e5ee;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.diff-slider .ui-slider-tooltip {
</del><ins>+.revisions-tooltip,
+.revisions-tooltip-arrow:after {
</ins><span class="cx">   border-color: #d1e5ee;
</span><span class="cx">  background-color: #fff;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadmincsscolorsfreshcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-fresh.css (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-fresh.css      2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-admin/css/colors-fresh.css 2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -1379,7 +1379,8 @@
</span><span class="cx">  border: 1px solid #dfdfdf;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.ui-slider-tooltip {
</del><ins>+.revisions-tooltip,
+.revisions-tooltip-arrow:after {
</ins><span class="cx">   border-color: #d7d7d7;
</span><span class="cx">  background-color: #fff;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadmincsswpadmincss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin.css (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin.css  2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-admin/css/wp-admin.css     2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -3501,10 +3501,14 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .revisions-controls {
</span><del>-       padding: 40px 0 20px;
-       margin-bottom: 10px;
</del><ins>+        padding-top: 40px;
+       height: 100px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.comparing-two-revisions .revisions-controls {
+       height: 140px;
+}
+
</ins><span class="cx"> .revisions-meta {
</span><span class="cx">  margin-top: 15px;
</span><span class="cx"> }
</span><span class="lines">@@ -3575,13 +3579,6 @@
</span><span class="cx">  text-decoration: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.revisions .ui-slider-tooltip {
-       position: absolute;
-       bottom: 105px;
-       margin-left: -70px;
-       line-height: 28px;
-}
-
</del><span class="cx"> #diff-title-to strong {
</span><span class="cx">  display: inline;
</span><span class="cx"> }
</span><span class="lines">@@ -3589,7 +3586,7 @@
</span><span class="cx"> #diff-header {
</span><span class="cx">  -webkit-border-radius: 3px;
</span><span class="cx">  border-radius: 3px;
</span><del>-       padding: 5px 200px 5px 5px;
</del><ins>+        padding: 5px;
</ins><span class="cx">   clear: both;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3628,71 +3625,46 @@
</span><span class="cx">  display: block;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.ui-tooltip-content img,
-.ui-slider-tooltip img {
-       float: left;
-       margin-right: 5px;
-       margin-top: 2px;
-       padding: 0;
-       vertical-align: middle;
-}
-
-
-/*  jQuery UI Tooltip 1.10.1 */
-
-.ui-tooltip,
-.ui-slider-tooltip {
-       padding: 4px;
</del><ins>+.revisions-tooltip {
</ins><span class="cx">   position: absolute;
</span><ins>+       bottom: 105px;
+       margin-left: -70px;
+       line-height: 28px;
</ins><span class="cx">   z-index: 9999;
</span><del>-       max-width: 300px;
</del><ins>+        max-width: 350px;
</ins><span class="cx">   min-width: 130px;
</span><ins>+       padding: 4px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-body .ui-tooltip,
-body .ui-slider-tooltip {
-       border-width: 1px;
</del><ins>+.comparing-two-revisions .revisions-tooltip {
+       bottom: 145px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.ui-tooltip,
-.ui-slider-tooltip,
-.arrow:after {
-       border: 1px solid #d7d7d7;
</del><ins>+.revisions-tooltip img {
+       float: left;
+       margin: 2px 5px 0 0;
+       padding: 0;
+       vertical-align: middle;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.ui-tooltip,
-.ui-slider-tooltip {
-       padding: 4px 4px;
-}
-
-.arrow {
</del><ins>+.revisions-tooltip-arrow {
</ins><span class="cx">   width: 70px;
</span><del>-       height: 16px;
</del><ins>+        height: 15px;
</ins><span class="cx">   overflow: hidden;
</span><span class="cx">  position: absolute;
</span><span class="cx">  left: 0;
</span><del>-       margin-left: -35px;
-       bottom: 90px;
</del><ins>+        margin-left: 35px;
+       bottom: -15px;
</ins><span class="cx">   z-index: 10000;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.arrow.top {
-       top: -16px;
-       bottom: auto;
-}
-
-.arrow.left {
-       left: 20%;
-}
-
-.arrow:after {
</del><ins>+.revisions-tooltip-arrow:after {
</ins><span class="cx">   content: "";
</span><span class="cx">  position: absolute;
</span><span class="cx">  left: 20px;
</span><span class="cx">  top: -20px;
</span><span class="cx">  width: 25px;
</span><span class="cx">  height: 25px;
</span><del>-       background-color: #FFF;
</del><span class="cx">   -webkit-transform: rotate(45deg);
</span><span class="cx">  -moz-transform: rotate(45deg);
</span><span class="cx">  -ms-transform: rotate(45deg);
</span><span class="lines">@@ -3700,13 +3672,13 @@
</span><span class="cx">  tranform: rotate(45deg);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.arrow.top:after {
-       bottom: -20px;
-       top: auto;
</del><ins>+.revisions-tooltip,
+.revisions-tooltip-arrow:after {
+       border-width: 1px;
+       border-style: solid;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx">  /* jQuery UI Slider */
</span><del>-
</del><span class="cx"> .wp-slider.ui-slider {
</span><span class="cx">  position: relative;
</span><span class="cx">  border-width: 1px;
</span><span class="lines">@@ -3786,31 +3758,7 @@
</span><span class="cx">  right: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-slider.ui-slider-vertical {
-       width: .8em;
-       height: 100px;
-}
</del><span class="cx"> 
</span><del>-.wp-slider.ui-slider-vertical .ui-slider-handle {
-       left: -.3em;
-       margin-left: 0;
-       margin-bottom: -.6em;
-}
-
-.wp-slider.ui-slider-vertical .ui-slider-range {
-       left: 0;
-       width: 100%;
-}
-
-.wp-slider.ui-slider-vertical .ui-slider-range-min {
-       bottom: 0;
-}
-
-.wp-slider.ui-slider-vertical .ui-slider-range-max {
-       top: 0;
-}
-
-
</del><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx">   11.3 - Featured Images
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span></span></pre></div>
<a id="trunkwpadminincludesrevisionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/revision.php (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/revision.php     2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-admin/includes/revision.php        2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -27,6 +27,12 @@
</span><span class="cx">          $compare_to = $temp;
</span><span class="cx">  }
</span><span class="cx"> 
</span><ins>+       // Add default title if title field is empty
+       if ( $compare_from && empty( $compare_from->post_title ) )
+               $compare_from->post_title = __( '(no title)' );
+       if ( empty( $compare_to->post_title ) )
+               $compare_to->post_title = __( '(no title)' );
+
</ins><span class="cx">   $return = array();
</span><span class="cx"> 
</span><span class="cx">  foreach ( _wp_post_revision_fields() as $field => $name ) {
</span></span></pre></div>
<a id="trunkwpadminjsrevisionsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/revisions.js (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/revisions.js   2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-admin/js/revisions.js      2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -357,19 +357,16 @@
</span><span class="cx"> 
</span><span class="cx">          initialize: function() {
</span><span class="cx">                  this.$el.html( this.template() );
</span><del>-                       this.listenTo( this.model, 'change:compareTwoMode', this.updateCompareTwoMode );
</del><span class="cx">           },
</span><span class="cx"> 
</span><span class="cx">          updateCompareTwoMode: function() {
</span><span class="cx">                  if ( this.model.get( 'compareTwoMode' ) ) {
</span><del>-                               $( '.compare-two-revisions' ).parent().css('border', '1px solid #f00;').prop( 'checked', true );
-                               $( '.revisions-control-frame' ).addClass( 'comparing-two-revisions' );
</del><ins>+                                $( '.compare-two-revisions' ).prop( 'checked', true );
</ins><span class="cx">                           // in RTL mode the 'left handle' is the second in the slider, 'right' is first
</span><span class="cx">                          $( '.wp-slider a.ui-slider-handle' ).first().addClass( isRtl ? 'right-handle' : 'left-handle' );
</span><span class="cx">                          $( '.wp-slider a.ui-slider-handle' ).last().addClass( isRtl ? 'left-handle' : 'right-handle' );
</span><span class="cx">                  } else {
</span><span class="cx">                          $( '.compare-two-revisions' ).prop( 'checked', false );
</span><del>-                               $( '.revisions-control-frame' ).removeClass( 'comparing-two-revisions' );
</del><span class="cx">                           $( '.wp-slider a.ui-slider-handle' ).removeClass( 'left-handle' ).removeClass( 'right-handle' );
</span><span class="cx">                  }
</span><span class="cx"> 
</span><span class="lines">@@ -392,6 +389,11 @@
</span><span class="cx">                  // Hide compare two mode toggle when fewer than three revisions.
</span><span class="cx">                  if ( this.model.revisions.length < 3 )
</span><span class="cx">                          $( '.revision-toggle-compare-mode' ).hide();
</span><ins>+
+                       this.listenTo( this.model, 'change:compareTwoMode', this.updateCompareTwoMode );
+
+                       // Update the mode in case route has set it
+                       this.updateCompareTwoMode();
</ins><span class="cx">           }
</span><span class="cx"> 
</span><span class="cx">  });
</span><span class="lines">@@ -425,13 +427,12 @@
</span><span class="cx">                  if ( null === this.model.get( 'revision' ) )
</span><span class="cx">                          return;
</span><span class="cx"> 
</span><ins>+                       // Insert revision data.
</ins><span class="cx">                   this.$el.html( this.template( this.model.get( 'revision' ).toJSON() ) );
</span><span class="cx"> 
</span><del>-                       var offset = $( '.revisions-buttons' ).offset().left,
-                               calculatedX = this.model.get( 'position' ) - offset;
-
-                       $( '.ui-slider-tooltip', this.$el ).css( 'left', calculatedX );
-                       $( '.arrow', this.$el ).css( 'left', calculatedX );
</del><ins>+                        // Set the position.
+                       var offset = $( '.revisions-buttons' ).offset().left;
+                       this.$el.css( 'left', this.model.get( 'position' ) - offset );
</ins><span class="cx">           }
</span><span class="cx">  });
</span><span class="cx"> 
</span><span class="lines">@@ -542,6 +543,9 @@
</span><span class="cx">                  this.settings.attributes.value = this.model.revisions.indexOf(
</span><span class="cx">                          this.model.revisions.findWhere( { id: Number( revisions.settings.selectedRevision ) } ) );
</span><span class="cx"> 
</span><ins>+                       // And update the slider in case the route has set it.
+                       this.updateSliderSettings();
+
</ins><span class="cx">                   this.slide( '', this.settings.attributes );
</span><span class="cx"> 
</span><span class="cx">                  this.$el.slider( this.settings.toJSON() );
</span><span class="lines">@@ -555,7 +559,6 @@
</span><span class="cx"> 
</span><span class="cx">                  // Listen for changes in the diffId
</span><span class="cx">                  this.listenTo( this.model, 'change:diffId', this.diffIdChanged );
</span><del>-
</del><span class="cx">           },
</span><span class="cx"> 
</span><span class="cx">          mousemove: function( e ) {
</span><span class="lines">@@ -589,27 +592,44 @@
</span><span class="cx">          },
</span><span class="cx"> 
</span><span class="cx">          updateSliderSettings: function() {
</span><del>-                       if ( isRtl ) {
-                               this.$el.slider( { // Order reversed in RTL mode
-                                       value: this.model.revisions.length - this.model.revisions.indexOf( this.model.get( 'to' ) ) - 1
</del><ins>+                        if ( this.model.get( 'compareTwoMode' ) ) {
+                               var leftValue, rightValue;
+
+                               // In single handle mode, the 1st stored revision is 'blank' and the 'from' model is not set
+                               // In this case we move the to index over one
+                               if ( 'undefined' == typeof this.model.get( 'from' ) ) {
+                                       if ( isRtl ) {
+                                               leftValue  = this.model.revisions.length -  this.model.revisions.indexOf( this.model.get( 'to' ) ) - 2;
+                                               rightValue = leftValue + 1;
+                                       } else {
+                                               leftValue  = this.model.revisions.indexOf( this.model.get( 'to' ) );
+                                               rightValue = leftValue + 1;
+                                       }
+                               } else {
+                                       leftValue  = isRtl ?    this.model.revisions.length -  this.model.revisions.indexOf( this.model.get( 'to' ) ) - 1 :
+                                                                                       this.model.revisions.indexOf( this.model.get( 'from' ) ),
+                                       rightValue = isRtl ?    this.model.revisions.length - this.model.revisions.indexOf( this.model.get( 'from' ) ) - 1 :
+                                                                                       this.model.revisions.indexOf( this.model.get( 'to' ) );
+                               }
+
+                               // Set handles to current from / to models.
+                               // Reverse order for RTL
+                               this.$el.slider( {
+                                       values: [
+                                               leftValue,
+                                               rightValue
+                                       ],
+                                       value: null,
+                                       range: true // Range mode ensures handles can't cross
</ins><span class="cx">                           } );
</span><span class="cx">                  } else {
</span><del>-                               if ( this.model.get( 'compareTwoMode' ) ) {
-                                       this.$el.slider( { // Set handles to current from/to models
-                                               values: [
-                                                       this.model.revisions.indexOf( this.model.get( 'from' ) ),
-                                                       this.model.revisions.indexOf( this.model.get( 'to' ) )
-                                               ],
-                                               value: null,
-                                               range: true // Range mode ensures handles can't cross
-                                       } );
-                               } else {
-                                       this.$el.slider( { // Set handle to current to model
-                                               value: this.model.revisions.indexOf( this.model.get( 'to' ) ),
-                                               values: null, // Clear existing two handled values
-                                               range: false
-                                       } );
-                               }
</del><ins>+                                this.$el.slider( { // Set handle to current to model
+                                       // Reverse order for RTL.
+                                       value: isRtl ?  this.model.revisions.length - this.model.revisions.indexOf( this.model.get( 'to' ) ) - 1 :
+                                                                       this.model.revisions.indexOf( this.model.get( 'to' ) ),
+                                       values: null, // Clear existing two handled values
+                                       range: false
+                               } );
</ins><span class="cx">                   }
</span><span class="cx">                  if ( this.model.get( 'compareTwoMode' ) ){
</span><span class="cx">                          $( '.revisions' ).addClass( 'comparing-two-revisions' );
</span><span class="lines">@@ -675,9 +695,10 @@
</span><span class="cx">                                  return false;
</span><span class="cx"> 
</span><span class="cx">                          attributes = {
</span><del>-                                       to: this.model.revisions.at( isRtl ? this.model.revisions.length - ui.values[1] - 1 : ui.values[1] ), // Reverse directions for RTL.
-                                       from: this.model.revisions.at( isRtl ? this.model.revisions.length - ui.values[0] - 1 : ui.values[0] ) // Reverse directions for RTL.
</del><ins>+                                        to: this.model.revisions.at( isRtl ? this.model.revisions.length - ui.values[0] - 1 : ui.values[1] ), // Reverse directions for RTL.
+                                       from: this.model.revisions.at( isRtl ? this.model.revisions.length - ui.values[1] - 1 : ui.values[0] ) // Reverse directions for RTL.
</ins><span class="cx">                           };
</span><ins>+
</ins><span class="cx">                   } else {
</span><span class="cx">                          // Compare single revision mode
</span><span class="cx">                          var sliderPosition = this.getSliderPosition( ui );
</span></span></pre></div>
<a id="trunkwpadminrevisionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/revision.php (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/revision.php      2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-admin/revision.php 2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">          break;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       $post_title = '<a href="' . get_edit_post_link() . '">' . get_the_title() . '</a>';
</del><ins>+        $post_title = '<a href="' . get_edit_post_link() . '">' . _draft_or_post_title() . '</a>';
</ins><span class="cx">   $h2 = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $post_title );
</span><span class="cx">  $title = __( 'Revisions' );
</span><span class="cx"> 
</span><span class="lines">@@ -127,14 +127,14 @@
</span><span class="cx"> </script>
</span><span class="cx"> 
</span><span class="cx"> <script id="tmpl-revisions-tooltip" type="text/html">
</span><del>-       <div class="ui-slider-tooltip ui-widget-content ui-corner-all ">
</del><ins>+        <div class="revisions-tooltip-content">
</ins><span class="cx">   <# if ( 'undefined' !== typeof data && 'undefined' !== typeof data.author ) { #>
</span><span class="cx">                  {{{ data.author.avatar }}} {{{ data.author.name }}},
</span><span class="cx">                  {{{ data.timeAgo }}} <?php _e( 'ago' ); ?>
</span><span class="cx">                  ({{{ data.dateShort }}})
</span><span class="cx">  <# } #>
</span><span class="cx">  </div>
</span><del>-       <div class="arrow"></div>
</del><ins>+        <div class="revisions-tooltip-arrow"></div>
</ins><span class="cx"> </script>
</span><span class="cx"> 
</span><span class="cx"> <script id="tmpl-revisions-checkbox" type="text/html">
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (24577 => 24578)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php      2013-07-05 23:33:47 UTC (rev 24577)
+++ trunk/wp-includes/script-loader.php 2013-07-06 10:48:14 UTC (rev 24578)
</span><span class="lines">@@ -276,7 +276,7 @@
</span><span class="cx"> 
</span><span class="cx">  $scripts->add( 'wp-backbone', "/wp-includes/js/wp-backbone$suffix.js", array('backbone', 'wp-util'), false, 1 );
</span><span class="cx"> 
</span><del>-       $scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'wp-backbone', 'jquery-ui-slider', 'jquery-ui-tooltip' ), false, 1 );
</del><ins>+        $scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'wp-backbone', 'jquery-ui-slider' ), false, 1 );
</ins><span class="cx"> 
</span><span class="cx">  $scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.8', 1 );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>