Make WordPress Core

Ticket #37555: 37555-01.diff

File 37555-01.diff, 651 bytes (added by Jonnyauk, 7 years ago)

Fixes bug with long titles in recent activity. Rathe than create a new CSS rules, I think I've used the most logical existing WP admin CSS class.

  • wp-admin/includes/dashboard.php

    diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
    index e517f95..8436863 100644
    a b function wp_dashboard_recent_posts( $args ) { 
    855855
    856856                        $draft_or_post_title = _draft_or_post_title();
    857857                        printf(
    858                                 '<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
     858                                '<li class="dashboard-comment-wrap"><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>',
    859859                                /* translators: 1: relative date, 2: time */
    860860                                sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ),
    861861                                $recent_post_link,