WordPress.org

Make WordPress Core

Ticket #7552: 7552.dashboard-3.diff

File 7552.dashboard-3.diff, 1012 bytes (added by mdawaffe, 10 years ago)

edit link on hover for matt and jane

  • wp-admin/includes/dashboard.php

     
    109109                        return;
    110110                }
    111111                list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
    112                 $widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="open-box">' . __( 'Edit' ) . '</a>';
     112                $widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Edit' ) . '</a>';
    113113        }
    114114        add_meta_box( $widget_id, $widget_name , $callback, 'dashboard', 'normal', 'core' );
    115115}
  • wp-admin/css/dashboard.css

     
     1.edit-box {
     2        display: none;
     3}
     4
     5h3:hover .edit-box {
     6        display: inline;
     7}
     8
    19form .input-text-wrap {
    210        border-style: solid;
    311        border-width: 1px;