Making WordPress.org


Ignore:
Timestamp:
09/24/2016 06:16:41 AM (8 years ago)
Author:
netweb
Message:

Forums Theme: Use bbp_get_topic_id() in the current_user_can() check for displaying IP addresses for moderators.

This changeset is a follow up to [4124] which originally used bbp_topic_id() that was echo'ing the topic ID to the single-topic-lead.php template.

See #1967.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/sidebar.php

    r4099 r4126  
    3939
    4040            <div>
    41                 <h3><?php _e( 'Topic Info', 'wporg-forums' ); ?></h3>
     41                <?php if ( wporg_support_is_single_review() ) : ?>
     42                    <h3><?php _e( 'Review Info', 'wporg-forums' ); ?></h3>
     43                <?php else : ?>
     44                    <h3><?php _e( 'Topic Info', 'wporg-forums' ); ?></h3>
     45                <?php endif; ?>
     46
    4247                <ul class="topic-info">
    4348                    <?php bb_base_single_topic_description(); ?>
Note: See TracChangeset for help on using the changeset viewer.