Changeset 5927

Show
Ignore:
Timestamp:
08/23/07 18:04:15 (1 year ago)
Author:
westi
Message:

Give the view links in post/page listings the view class rather than the edit class, fixes #4058 props rgovostes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-post-rows.php

    r5821 r5927  
    7979    case 'control_view': 
    8080        ?> 
    81         <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 
     81        <td><a href="<?php the_permalink(); ?>" rel="permalink" class="view"><?php _e('View'); ?></a></td> 
    8282        <?php 
    8383        break; 
  • trunk/wp-admin/includes/template.php

    r5836 r5927  
    188188    <td><?php the_author() ?></td> 
    189189    <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>  
    190     <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e( 'View' ); ?></a></td> 
     190    <td><a href="<?php the_permalink(); ?>" rel="permalink" class="view"><?php _e( 'View' ); ?></a></td> 
    191191    <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td>  
    192192    <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>  
  • trunk/wp-admin/wp-admin.css

    r5913 r5927  
    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; 
     
    111111} 
    112112 
    113 a.edit:hover { 
     113a.view:hover, a.edit:hover { 
    114114    background: #ccc; 
    115115    color: #036;