WordPress.org

Making WordPress.org

Changeset 5630


Ignore:
Timestamp:
07/07/2017 10:25:01 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Display "Reviews Written" count in user profile only on the main support forums, since reviews are only available there.

See #2772.

File:
1 edited

Legend:

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

    r5629 r5630  
    125125        ?></p>
    126126
    127         <p class="bbp-user-review-count"><?php
    128             /* translators: %s: number of user's reviews */
    129             printf( esc_html__( 'Reviews Written: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_reviews_count() ) );
    130         ?></p>
     127        <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?>
     128            <p class="bbp-user-review-count"><?php
     129                /* translators: %s: number of user's reviews */
     130                printf( esc_html__( 'Reviews Written: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_reviews_count() ) );
     131            ?></p>
     132        <?php endif; ?>
    131133    </div>
    132134</div><!-- #bbp-author-topics-started -->
Note: See TracChangeset for help on using the changeset viewer.