Make WordPress Core

Changeset 24670


Ignore:
Timestamp:
07/12/2013 07:26:11 AM (12 years ago)
Author:
markjaquith
Message:

Fix a PHP 5.4-ism that slipped in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/revision.php

    r24668 r24670  
    102102    $compare_two_mode = (bool) $from;
    103103    if ( ! $from ) // Single mode
    104         $from = array_keys( array_slice( $revisions, array_search( $selected_revision_id, array_keys( $revisions ) ) - 1, 1, true ) )[0];
     104        $from = array_keys( array_slice( $revisions, array_search( $selected_revision_id, array_keys( $revisions ) ) - 1, 1, true ) );
     105        $from = $from[0];
    105106
    106107    $diffs = array( array(
Note: See TracChangeset for help on using the changeset viewer.