WordPress.org

Make WordPress Core

Ticket #36081: 36081.4.diff

File 36081.4.diff, 2.1 KB (added by metodiew, 3 years ago)

While I tested the patch I found we've missed the "At a Glance" widget. I really doubt if anyone is going to add that long word, but I've updated the patch and added the new class to this widget too, just in case

  • wp-admin/css/dashboard.css

     
    968968        font-size: 16px;
    969969}
    970970
     971/* Word wrap and break word utility class. */
     972.wordwrap {
     973        overflow-wrap: break-word;
     974        word-wrap: break-word;
     975        -ms-word-break: break-all;
     976        word-break: break-word;
     977        -ms-hyphens: auto;
     978        -moz-hyphens: auto;
     979        -webkit-hyphens: auto;
     980        hyphens: auto;
     981}
     982
    971983/* =Media Queries
    972984-------------------------------------------------------------- */
    973985
  • wp-admin/includes/dashboard.php

     
    239239 */
    240240function wp_dashboard_right_now() {
    241241?>
    242         <div class="main">
     242        <div class="main wordwrap">
    243243        <ul>
    244244        <?php
    245245        // Posts and Pages
     
    365365        $actions = ob_get_clean();
    366366
    367367        if ( !empty( $actions ) ) : ?>
    368         <div class="sub">
     368        <div class="sub wordwrap">
    369369                <?php echo $actions; ?>
    370370        </div>
    371371        <?php endif;
     
    847847
    848848                        $draft_or_post_title = _draft_or_post_title();
    849849                        printf(
    850                                 '<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
     850                                '<li><span>%1$s</span> <a href="%2$s" class="wordwrap" aria-label="%3$s">%4$s</a></li>',
    851851                                /* translators: 1: relative date, 2: time */
    852852                                sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ),
    853853                                $recent_post_link,
     
    936936 */
    937937function wp_dashboard_rss_output( $widget_id ) {
    938938        $widgets = get_option( 'dashboard_widget_options' );
    939         echo '<div class="rss-widget">';
     939        echo '<div class="rss-widget wordwrap">';
    940940        wp_widget_rss_output( $widgets[ $widget_id ] );
    941941        echo "</div>";
    942942}
     
    11691169function wp_dashboard_primary_output( $widget_id, $feeds ) {
    11701170        foreach ( $feeds as $type => $args ) {
    11711171                $args['type'] = $type;
    1172                 echo '<div class="rss-widget">';
     1172                echo '<div class="rss-widget wordwrap">';
    11731173                if ( $type === 'plugins' ) {
    11741174                        wp_dashboard_plugins_output( $args['url'], $args );
    11751175                } else {