wp/wp-admin/includes/revision.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    14  *
    14  *
    15  * @param WP_Post|int $post         The post object or post ID.
    15  * @param WP_Post|int $post         The post object or post ID.
    16  * @param int         $compare_from The revision ID to compare from.
    16  * @param int         $compare_from The revision ID to compare from.
    17  * @param int         $compare_to   The revision ID to come to.
    17  * @param int         $compare_to   The revision ID to come to.
    18  * @return array|false Associative array of a post's revisioned fields and their diffs.
    18  * @return array|false Associative array of a post's revisioned fields and their diffs.
    19  *                    Or, false on failure.
    19  *                     Or, false on failure.
    20  */
    20  */
    21 function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
    21 function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
    22 	$post = get_post( $post );
    22 	$post = get_post( $post );
    23 	if ( ! $post ) {
    23 	if ( ! $post ) {
    24 		return false;
    24 		return false;