Making WordPress.org


Ignore:
Timestamp:
03/06/2017 12:39:04 AM (5 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/functions.php

    r5079 r5086  
    225225
    226226    return ( WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id() );
     227}
     228
     229/**
     230 * Check if the current page is a user's reviews page.
     231 *
     232 * @return bool True if the page is a user's reviews page, false otherwise.
     233 */
     234function wporg_support_is_single_user_reviews() {
     235    return get_query_var( 'wporg_single_user_reviews' );
    227236}
    228237
Note: See TracChangeset for help on using the changeset viewer.