Admin: After [35128], make the 'Configure' link work again for dashboard widgets.

This merges the CSS changes from [35896] into an inline function in formatting.php to avoid a `wp-admin.min.css` rebuild.

Fixes #34987.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2016-01-02 04:33:08 +00:00
parent 60d47bc0e0
commit 5eda2cf462

View File

@ -4801,4 +4801,20 @@ function url_shorten( $url, $length = 35 ) {
$short_url = substr( $short_url, 0, $length - 3 ) . '…';
}
return $short_url;
}
}
/**
* 4.4.x hotfix for hidden configure links on admin dashboard.
*
* @ignore
*/
function _wp_441_dashboard_display_configure_links_css() {
echo '<style type="text/css">
.postbox .button-link .edit-box { display: none; }
.wp-admin .edit-box { display: block; opacity: 0; }
.hndle:hover .edit-box, .edit-box:focus { opacity: 1; }
#dashboard-widgets h2 a { text-decoration: underline; }
#dashboard-widgets .hndle .postbox-title-action { float: right; line-height: 1.2; }
</style>';
}
add_action( 'admin_print_styles-index.php', '_wp_441_dashboard_display_configure_links_css' );