Skip to:
Content

BuddyPress.org

Changeset 11937


Ignore:
Timestamp:
04/02/2018 10:34:43 PM (7 years ago)
Author:
djpaul
Message:

Templates, Legacy: re-introduce bp_is_user_forums().

This is for compatibility with sites still running BP-Default (not updated since 2013)
and sites running BP-Legacy with a custom members/single/home.php taken from a
pre-3.0 version of BuddyPress.

Fixes #5351 again

Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r11833 r11937  
    24722472function bp_is_user_change_cover_image() {
    24732473    return (bool) ( bp_is_profile_component() && bp_is_current_action( 'change-cover-image' ) );
     2474}
     2475
     2476/**
     2477 * Is this a user's forums page?
     2478 *
     2479 * Eg http://example.com/members/joe/forums/ (or a subpage thereof).
     2480 *
     2481 * @since 1.5.0
     2482 * @deprecated 3.0.0 No longer used in core, but supported for third-party code.
     2483 *
     2484 * @return false
     2485 */
     2486function bp_is_user_forums() {
     2487    return false;
    24742488}
    24752489
Note: See TracChangeset for help on using the changeset viewer.