]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/revision.php
Wordpress 2.8.5-scripts
[autoinstalls/wordpress.git] / wp-admin / revision.php
index 4820abc3c7e048c30f70f870164b2e159077cc5b..9c3ce3630b4accc1725a639c15391fc635a998a2 100644 (file)
@@ -1,8 +1,15 @@
 <?php
-
+/**
+ * Revisions administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
-wp_reset_vars(array('revision', 'left', 'right', 'action'));
+wp_reset_vars(array('revision', 'left', 'right', 'diff', 'action'));
 $revision_id = absint($revision);
 $diff        = absint($diff);
 $left        = absint($left);
@@ -84,7 +91,7 @@ case 'diff' :
                ( !wp_get_post_revision( $left_revision->ID ) && !wp_get_post_revision( $right_revision->ID ) )
        )
                break;
-       
+
        $post_title = '<a href="' . get_edit_post_link() . '">' . get_the_title() . '</a>';
        $h2 = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $post_title );
 
@@ -154,7 +161,7 @@ require_once( 'admin-header.php' );
 </tr>
 <?php endif;
 
-// use get_post_to_edit filters? 
+// use get_post_to_edit filters?
 $identical = true;
 foreach ( _wp_post_revision_fields() as $field => $field_title ) :
        if ( 'diff' == $action ) {
@@ -170,7 +177,7 @@ foreach ( _wp_post_revision_fields() as $field => $field_title ) :
        ?>
 
        <tr id="revision-field-<?php echo $field; ?>">
-               <th scope="row"><?php echo wp_specialchars( $field_title ); ?></th>
+               <th scope="row"><?php echo esc_html( $field_title ); ?></th>
                <td><div class="pre"><?php echo $content; ?></div></td>
        </tr>