WordPress.org

Make WordPress Core

Ticket #22590: get_post_class.diff

File get_post_class.diff, 497 bytes (added by mordauk, 5 years ago)

Adds "post-sticky" class for sticky posts in the admin list tables.

  • wp-includes/post-template.php

     
    345345        if ( is_sticky($post->ID) && is_home() && !is_paged() )
    346346                $classes[] = 'sticky';
    347347
     348        // post-sticky for sticky posts in the admin
     349        if ( is_sticky($post->ID) && is_admin() )
     350                $classes[] = 'post-sticky';
     351
    348352        // hentry for hAtom compliance
    349353        $classes[] = 'hentry';
    350354