Making WordPress.org


Ignore:
Timestamp:
03/06/2017 12:39:04 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Show user's reviews as a custom view in their profile.

Fixes #2007.

File:
1 edited

Legend:

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

    r5085 r5086  
    4747                        printf( esc_attr__( "%s's Replies Created", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
    4848                    ?>"><?php esc_html_e( 'Replies Created', 'wporg-forums' ); ?></a>
     49                </span>
     50            </li>
     51
     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>
    4958                </span>
    5059            </li>
Note: See TracChangeset for help on using the changeset viewer.