Edit link on hover for dash. Props mdawaffe. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@9121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca893a2828
commit
31937a5a79
|
@ -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