Making WordPress.org


Ignore:
Timestamp:
09/24/2016 06:16:41 AM (7 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/bbpress/content-single-topic-lead.php

    r4124 r4126  
    2828                <p class="bbp-topic-post-date"><a href="<?php bbp_topic_permalink(); ?>" title="#<?php bbp_topic_id(); ?>" class="bbp-topic-permalink"><?php bbp_topic_post_date( bbp_get_topic_id(), true ); ?></a></p>
    2929
    30                 <?php if ( current_user_can( 'moderate', bbp_topic_id() ) ) : ?>
     30                <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?>
    3131
    3232                    <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
Note: See TracChangeset for help on using the changeset viewer.