WordPress.org

Making WordPress.org

Changeset 5094


Ignore:
Timestamp:
03/06/2017 02:27:27 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

Props ocean90.
See #2007.

File:
1 edited

Legend:

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

    r5092 r5094  
    5050            </li>
    5151
    52             <li class="<?php if ( wporg_support_is_single_user_reviews() ) :?>current<?php endif; ?>">
    53                 <span class='bbp-user-replies-created-link'>
    54                     <a href="<?php bbp_user_profile_url(); ?>reviews/" title="<?php
    55                         /* translators: %s: user's display name */
    56                         printf( esc_attr__( "%s's Reviews", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
    57                     ?>"><?php esc_html_e( 'Reviews', 'wporg-forums' ); ?></a>
    58                 </span>
    59             </li>
     52            <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?>
     53                <li class="<?php if ( wporg_support_is_single_user_reviews() ) :?>current<?php endif; ?>">
     54                    <span class='bbp-user-replies-created-link'>
     55                        <a href="<?php bbp_user_profile_url(); ?>reviews/" title="<?php
     56                            /* translators: %s: user's display name */
     57                            printf( esc_attr__( "%s's Reviews", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
     58                        ?>"><?php esc_html_e( 'Reviews', 'wporg-forums' ); ?></a>
     59                    </span>
     60                </li>
     61            <?php endif; ?>
    6062
    6163            <?php if ( function_exists( 'bbp_is_engagements_active' ) && bbp_is_engagements_active() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.