WordPress.org

Make WordPress Core

Ticket #12816: easter-egg-revisions-filter.12816.2.diff

File easter-egg-revisions-filter.12816.2.diff, 656 bytes (added by filosofo, 8 years ago)
  • wp-admin/revision.php

     
    4949        // If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post
    5050        if ( $left_revision->ID == $right_revision->ID ) {
    5151                $redirect = get_edit_post_link( $left_revision->ID );
    52                 include( 'js/revisions-js.php' );
     52                $ee_revisions_js = apply_filters('revisions_js_path', 'js/revisions-js.php');
     53                if ( $ee_revisions_js && file_exists($ee_revisions_js) )
     54                        include $ee_revisions_js;
    5355                break;
    5456        }
    5557