WordPress.org

Make WordPress Core

Ticket #26571: dashboard.2.diff

File dashboard.2.diff, 475 bytes (added by nerrad, 7 years ago)

tweak dashboard_glance_items filter

  • dashboard.php

     
    222222         */
    223223        $elements = apply_filters( 'dashboard_glance_items', array() );
    224224        if ( $elements ) {
    225                 echo '<li>' . implode( "</li>\n<li>", $elements ) . "</li>\n";
     225                foreach ( (array) $elements as $class => $element ) {
     226                        printf( "<li class='%s-count'>%s</li>\n", $class, $element );
     227                }
    226228        }
    227229
    228230        ?>