Ticket #24873: 28873.3.diff
| File 28873.3.diff, 725 bytes (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 ) ); 183 $from = $from[0]; 182 $found = array_search( $selected_revision_id, array_keys( $revisions ) ); 183 if ( $found ) 184 $from = array_shift( array_keys( array_slice( $revisions, $found - 1, 1, true ) ) ); 185 else 186 $from = 0; 184 187 } 185 188 186 189 $from = absint( $from );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)