WordPress.org

Making WordPress.org


Ignore:
Timestamp:
01/14/2017 01:54:17 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Only show "Sticky Topic" pin icon if the topic is actually sticky.

Fixes #2309.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-topic-lead.php

    r4672 r4677  
    1717
    1818        <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
    19             <div class="topic-indicator">
    20                 <span class="dashicons dashicons-admin-post" title="<?php esc_attr_e( 'Sticky Topic', 'wporg-forums' ); ?>"></span>
    21             </div>
     19            <?php if ( bbp_is_topic_sticky() ) : ?>
     20                <div class="topic-indicator">
     21                    <span class="dashicons dashicons-admin-post" title="<?php esc_attr_e( 'Sticky Topic', 'wporg-forums' ); ?>"></span>
     22                </div>
     23            <?php endif; ?>
    2224
    2325            <div class="bbp-topic-author">
Note: See TracChangeset for help on using the changeset viewer.