Ticket #4058: viewclass.patch

File viewclass.patch, 2.1 KB (added by rgovostes, 6 years ago)

Adds a:view class to CSS files and corrects links to use it

  • wp-admin/admin-functions.php

     
    831831    </td>  
    832832    <td><?php the_author() ?></td> 
    833833    <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?></td>  
    834         <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e( 'View' ); ?></a></td> 
     834        <td><a href='<?php the_permalink(); ?>' rel='permalink' class='view'><?php _e( 'View' ); ?></a></td> 
    835835    <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td>  
    836836    <td><?php if ( current_user_can( 'delete_page', $id ) ) { echo "<a href='" . wp_nonce_url( "page.php?action=delete&amp;post=$id", 'delete-page_' . $id ) .  "' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . js_escape(sprintf( __("You are about to delete the '%s' page.\n'OK' to delete, 'Cancel' to stop." ), get_the_title() ) ) . "' );\">" . __( 'Delete' ) . "</a>"; } ?></td>  
    837837  </tr>  
  • wp-admin/edit.php

     
    209209 
    210210        case 'control_view': 
    211211                ?> 
    212                 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 
     212                <td><a href='<?php the_permalink(); ?>' rel='permalink' class='view'><?php _e('View'); ?></a></td> 
    213213                <?php 
    214214                break; 
    215215 
  • wp-admin/wp-admin.css

     
    103103        padding: 1em; 
    104104} 
    105105 
    106 a.edit, a.delete, a.edit:hover, a.delete:hover { 
     106a.view, a.edit, a.delete, a.view:hover, a.edit:hover, a.delete:hover { 
    107107        border-bottom: none; 
    108108        display: block; 
    109109        padding: 5px 0; 
    110110        text-align: center; 
    111111} 
    112112 
    113 a.edit:hover { 
     113a.view:hover, a.edit:hover { 
    114114        background: #ccc; 
    115115        color: #036; 
    116116}