Make WordPress Core

Changeset 29003


Ignore:
Timestamp:
07/05/2014 12:12:46 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Add 'status-sticky' class in get_post_class() for sticky posts in the admin.

props mordauk, netweb.
fixes #22590.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r28976 r29003  
    452452
    453453    // sticky for Sticky Posts
    454     if ( is_sticky($post->ID) && is_home() && !is_paged() )
    455         $classes[] = 'sticky';
     454    if ( is_sticky( $post->ID ) ) {
     455        if ( is_home() && ! is_paged() ) {
     456            $classes[] = 'sticky';
     457        } elseif ( is_admin() ) {
     458            $classes[] = 'status-sticky';
     459        }
     460    }
    456461
    457462    // hentry for hAtom compliance
Note: See TracChangeset for help on using the changeset viewer.