mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
53b8d4497a
commit
b81f08f5b9
@ -1,3 +1,11 @@
|
||||
.edit-box {
|
||||
display: none;
|
||||
}
|
||||
|
||||
h3:hover .edit-box {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
form .input-text-wrap {
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
|
||||
@ -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' );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user