Make WordPress Core

Changeset 61799

Timestamp:
03/03/2026 05:25:38 PM (35 hours ago)
Author:
joedolson
Message:

Posts, Post Types: Restore post type icons in At a Glance.

Following [61555], the post type icons were missing from the At a Glance dashboard widget. Restore the post type class omitted from the previous commit.

Props ocean90, krokodok, karinchristen, hubersen, stefanvelthuys, ozgursar, sabernhardt, joedolson.
Fixes #43084.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r61798 r61799  
    327327                    admin_url( 'edit.php' )
    328328                );
    329                 printf( '<li class="%1$s-count"><a href="%1$s">%2$s</a></li>', esc_url( $url ), esc_html( $text ) );
     329                printf( '<li class="%1$s-count"><a href="%, esc_url( $url ), esc_html( $text ) );
    330330            } else {
    331331                printf( '<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text );
Note: See TracChangeset for help on using the changeset viewer.