Ticket #24873: 28873.diff
| File 28873.diff, 1.0 KB (added by , 13 years ago) |
|---|
-
wp-admin/includes/revision.php
179 179 // Now, grab the initial diff 180 180 $compare_two_mode = is_numeric( $from ); 181 181 if ( ! $compare_two_mode ) { 182 $from = array_ keys( array_slice( $revisions, array_search( $selected_revision_id, array_keys( $revisions ) ) - 1, 1, true) );182 $from = array_reverse( array_keys( array_slice( $revisions, array_search( $selected_revision_id, array_keys( $revisions ) ), 2, true ) ) ); 183 183 $from = $from[0]; 184 184 } 185 185 -
wp-admin/js/revisions.js
656 656 _(tickCount).times( function( index ){ 657 657 this.$el.append( '<div style="' + this.direction + ': ' + ( 100 * tickWidth * index ) + '%"></div>' ); 658 658 }, this ); 659 660 this.reportTickPosition(); 659 661 } 660 662 }); 661 663
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)