Make WordPress Core

Changeset 8012


Ignore:
Timestamp:
05/29/2008 11:16:11 PM (17 years ago)
Author:
ryan
Message:

Validation fixes for post revisions. Props mdawaffe. see #6775

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r7993 r8012  
    33}
    44
    5 body, .form-table pre {
     5body, .form-table .pre {
    66    background-color: #fff;
    77    color: #333;
  • trunk/wp-admin/css/colors-fresh.css

    r7993 r8012  
    33}
    44
    5 body, .form-table pre {
     5body, .form-table .pre {
    66    background-color: #fff;
    77    color: #333;
  • trunk/wp-admin/revision.php

    r8011 r8012  
    147147        <span class="alignleft"><?php printf( __('Older: %s'), wp_post_revision_title( $left_revision ) ); ?></span>
    148148        <span class="alignright"><?php printf( __('Newer: %s'), wp_post_revision_title( $right_revision ) ); ?></span>
    149     </td>
     149    </th>
    150150</tr>
    151151<?php endif;
     
    168168    <tr id="revision-field-<?php echo $field; ?>">
    169169        <th scope="row"><?php echo wp_specialchars( $field_title ); ?></th>
    170         <td><pre><?php echo $content; ?></pre></td>
     170        <td><div class="pre"><?php echo $content; ?></div></td>
    171171    </tr>
    172172
     
    201201wp_list_post_revisions( $post, $args );
    202202
     203?>
     204
     205</div>
     206
     207<?php
     208
    203209require_once( 'admin-footer.php' );
  • trunk/wp-admin/wp-admin.css

    r7961 r8012  
    928928}
    929929
    930 .form-table pre {
     930.form-table .pre {
    931931    padding: 8px;
    932932    margin: 0;
     933}
     934
     935.pre {
    933936    /* http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/ */
    934937    white-space: pre-wrap; /* css-3 */
  • trunk/wp-includes/post-template.php

    r8011 r8012  
    678678
    679679            $rows .= "<tr$class>\n";
    680             $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked /><input type='radio' name='right' value='$revision->ID'$right_checked />\n";
     680            $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked /><input type='radio' name='right' value='$revision->ID'$right_checked /></th>\n";
    681681            $rows .= "\t<td>$date</td>\n";
    682682            $rows .= "\t<td>$name</td>\n";
     
    708708    <col style="width: 33%" />
    709709<thead>
     710<tr>
    710711    <th scope="col"></th>
    711712    <th scope="col"><?php _e( 'Date Created' ); ?></th>
    712713    <th scope="col"><?php _e( 'Author' ); ?></th>
    713714    <th scope="col" class="action-links"><?php _e( 'Actions' ); ?></th>
     715</tr>
    714716</thead>
    715717<tbody>
     
    719721</tbody>
    720722</table>
     723
     724</form>
    721725
    722726<?php
Note: See TracChangeset for help on using the changeset viewer.