Making WordPress.org

Changeset 5093


Ignore:
Timestamp:
03/06/2017 02:10:57 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Check if bbp_is_single_user_engagements() exists before calling it in content-single-user.php.

Props ocean90.

File:
1 edited

Legend:

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

    r5086 r5093  
    2323            <?php if ( bbp_is_favorites()                     ) bbp_get_template_part( 'user', 'favorites'       ); ?>
    2424            <?php if ( bbp_is_subscriptions()                 ) bbp_get_template_part( 'user', 'subscriptions'   ); ?>
    25             <?php if ( bbp_is_single_user_engagements()       ) bbp_get_template_part( 'user', 'engagements'     ); ?>
     25
     26            <?php
     27                if ( function_exists( 'bbp_is_single_user_engagements' ) && bbp_is_single_user_engagements() ) {
     28                    bbp_get_template_part( 'user', 'engagements' );
     29                }
     30            ?>
     31
    2632            <?php if ( bbp_is_single_user_topics()            ) bbp_get_template_part( 'user', 'topics-created'  ); ?>
    2733            <?php if ( bbp_is_single_user_replies()           ) bbp_get_template_part( 'user', 'replies-created' ); ?>
Note: See TracChangeset for help on using the changeset viewer.