Make WordPress Core

Changeset 27383


Ignore:
Timestamp:
03/03/2014 07:49:03 PM (10 years ago)
Author:
nacin
Message:

Revisions: Add 'Return to post editor' link.

props adamsilverstein, jenmylo.
fixes #24682.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/revision.php

    r26518 r27383  
    7373    }
    7474
    75     $post_title = '<a href="' . get_edit_post_link() . '">' . _draft_or_post_title() . '</a>';
    76     $h2 = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $post_title );
    77     $title = __( 'Revisions' );
     75    $post_edit_link = get_edit_post_link();
     76    $post_title     = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
     77    $h2             = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $post_title );
     78    $return_to_post = '<a href="' . $post_edit_link . '">' . __( '&larr; Return to post editor' ) . '</a>';
     79    $title          = __( 'Revisions' );
    7880
    7981    $redirect = false;
     
    126128<div class="wrap">
    127129    <h2 class="long-header"><?php echo $h2; ?></h2>
     130    <?php echo $return_to_post; ?>
    128131</div>
    129132
Note: See TracChangeset for help on using the changeset viewer.