Make sure the update button in "At a Glance" dashboard widget does not overlap with long strings.
props SergeyBiryukov, afercia, tyxla. fixes #30766. git-svn-id: https://develop.svn.wordpress.org/trunk@31928 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dadbb9713c
commit
2b55dfcb8b
@ -352,10 +352,10 @@ body #dashboard-widgets .postbox form .submit {
|
||||
}
|
||||
|
||||
#dashboard_right_now #wp-version-message .button {
|
||||
clear: right;
|
||||
float: right;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.mu-storage {
|
||||
|
@ -221,15 +221,17 @@ function update_right_now_message() {
|
||||
$theme_name = sprintf( '<a href="themes.php">%1$s</a>', $theme_name );
|
||||
}
|
||||
|
||||
$msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name );
|
||||
$msg = '';
|
||||
|
||||
if ( current_user_can('update_core') ) {
|
||||
$cur = get_preferred_from_update_core();
|
||||
|
||||
if ( isset( $cur->response ) && $cur->response == 'upgrade' )
|
||||
$msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';
|
||||
$msg .= '<a href="' . network_admin_url( 'update-core.php' ) . '" class="button" aria-describedby="wp-version">' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a> ';
|
||||
}
|
||||
|
||||
$msg .= sprintf( '<span id="wp-version">' . __( 'WordPress %1$s running %2$s theme.' ) . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
|
||||
|
||||
echo "<p id='wp-version-message'>$msg</p>";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user