equal
deleted
inserted
replaced
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; |