Edit link on hover for dash. Props mdawaffe. see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@9121 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-10 23:58:30 +00:00
parent 53b8d4497a
commit b81f08f5b9
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
.edit-box {
display: none;
}
h3:hover .edit-box {
display: inline;
}
form .input-text-wrap {
border-style: solid;
border-width: 1px;

View File

@ -109,7 +109,7 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
return;
}
list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
$widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="open-box">' . __( 'Edit' ) . '</a>';
$widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Edit' ) . '</a>';
}
add_meta_box( $widget_id, $widget_name , $callback, 'dashboard', 'normal', 'core' );
}