WordPress.org

Make WordPress Core

Ticket #4058: 4058.complete.diff

File 4058.complete.diff, 2.3 KB (added by westi, 11 years ago)

The complete patch - make sure we fix for pages as well as posts

  • 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}
  • wp-admin/includes/template.php

     
    187187    </td>
    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>
    193193  </tr>
     
    592592                echo '<input type="hidden" id="wp-old-slug" name="wp-old-slug" value="' . $name . '" />';
    593593}
    594594
    595 ?>
    596  No newline at end of file
     595?>
  • wp-admin/edit-post-rows.php

     
    7878
    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;
    8484