mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +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:
@@ -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' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user