WordPress.org

Make WordPress Core

Ticket #26571: 26571.diff

File 26571.diff, 549 bytes (added by swissspidy, 4 years ago)
  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index 505862b..67659d7 100644
    function wp_dashboard_right_now() { 
    284284        $elements = apply_filters( 'dashboard_glance_items', array() );
    285285
    286286        if ( $elements ) {
    287                 echo '<li>' . implode( "</li>\n<li>", $elements ) . "</li>\n";
     287                foreach ( (array) $elements as $class => $element ) {
     288                        printf( "<li class='%s'>%s</li>\n", esc_attr( $class ), $element );
     289                }
    288290        }
    289291
    290292        ?>