Fix a PHP 5.4-ism that slipped in.
git-svn-id: https://develop.svn.wordpress.org/trunk@24670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
88b8cd8f2f
commit
b7e1e25e36
@ -101,7 +101,8 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
|
||||
// Now, grab the initial diff
|
||||
$compare_two_mode = (bool) $from;
|
||||
if ( ! $from ) // Single mode
|
||||
$from = array_keys( array_slice( $revisions, array_search( $selected_revision_id, array_keys( $revisions ) ) - 1, 1, true ) )[0];
|
||||
$from = array_keys( array_slice( $revisions, array_search( $selected_revision_id, array_keys( $revisions ) ) - 1, 1, true ) );
|
||||
$from = $from[0];
|
||||
|
||||
$diffs = array( array(
|
||||
'id' => $from . ':' . $selected_revision_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user