WordPress.org

Make WordPress Core

Ticket #29920: 29920.2.diff

File 29920.2.diff, 421 bytes (added by mattheu, 6 years ago)

Filter wp_get_revision_ui_diff

  • src/wp-admin/includes/revision.php

    diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php
    index 151cd64..17be3d2 100644
    a b function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { 
    9292                        );
    9393                }
    9494        }
    95         return $return;
     95        return apply_filters( 'wp_get_revision_ui_diff', $return, $compare_from, $compare_to );
    9696}
    9797
    9898/**