Ticket #6775: 6775.8.diff

File 6775.8.diff, 3.2 kB (added by mdawaffe, 5 months ago)

validation

  • wp-includes/post-template.php

    old new  
    677677                                $actions = ''; 
    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"; 
    683683                        $rows .= "\t<td class='action-links'>$actions</td>\n"; 
     
    707707        <col style="width: 33%" /> 
    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> 
    716718 
     
    719721</tbody> 
    720722</table> 
    721723 
     724</form> 
     725 
    722726<?php 
    723727        else : 
    724728                echo "<ul class='post-revisions'>\n"; 
  • wp-admin/wp-admin.css

    old new  
    927927        margin-right: 5px 
    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 */ 
    935938        white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ 
  • wp-admin/revision.php

    old new  
    146146        <th scope="col" class="th-full"> 
    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; 
    152152 
     
    167167 
    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 
    173173        <?php 
     
    200200 
    201201wp_list_post_revisions( $post, $args ); 
    202202 
     203?> 
     204 
     205</div> 
     206 
     207<?php 
     208 
    203209require_once( 'admin-footer.php' ); 
  • wp-admin/css/colors-fresh.css

    old new  
    22        border-color: #999; 
    33} 
    44 
    5 body, .form-table pre { 
     5body, .form-table .pre { 
    66        background-color: #fff; 
    77        color: #333; 
    88} 
  • wp-admin/css/colors-classic.css

    old new  
    22        border-color: #999; 
    33} 
    44 
    5 body, .form-table pre { 
     5body, .form-table .pre { 
    66        background-color: #fff; 
    77        color: #333; 
    88}