$return = array
();
if ( function_exists( 'set_time_limit'
) ) { set_time_limit( 0
);
} foreach ( $_REQUEST['compare'
] as $compare_key ) { list
( $compare_from,
$compare_to ) =
explode( ':',
$compare_key ); // from:to
$return[] = array
( 'id' =>
$compare_key,
'fields' =>
wp_get_revision_ui_diff( $post,
$compare_from,
$compare_to ),
);
} wp_send_json_success( $return );
}/**
* Handles auto-saving the selected color scheme for
* a user's own profile via AJAX.
*
* @since 3.8.0
*
* @global array $_wp_admin_css_colors
*/