WordPress.org

Make WordPress Core

Ticket #23935: restore-eater-egg.diff

File restore-eater-egg.diff, 447 bytes (added by adamsilverstein, 12 months ago)
  • wp-admin/revision.php

     
    1313$revision_id = absint( $revision ); 
    1414$redirect = 'edit.php'; 
    1515 
     16if ( $revision == $action ) { 
     17        include( './js/revisions-js.php' ); 
     18        break; 
     19} 
     20 
    1621switch ( $action ) : 
    1722case 'restore' : 
    1823        if ( ! $revision = wp_get_post_revision( $revision_id ) )