Changeset 24866
- Timestamp:
- 07/29/2013 05:53:24 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/revision.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/revision.php
r24864 r24866 181 181 if ( ! $compare_two_mode ) { 182 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 183 if ( $found ) { 184 $from = array_keys( array_slice( $revisions, $found - 1, 1, true ) ); 185 $from = reset( $from ); 186 } else { 186 187 $from = 0; 188 } 187 189 } 188 190
Note: See TracChangeset
for help on using the changeset viewer.