Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/08/2017 12:22:09 AM (7 years ago)
Author:
djpaul
Message:

Retire Legacy Forums.

"Legacy Forums" is what we now call the bundled version of bbPress 1 that has shipped with BuddyPress for over nine years. The Legacy Forums codebase/features are many years stagnant, and it has been almost completely hidden from the UI for the past five years.

Legacy Forums were replaced by bbPress 2, which is its own plugin, and we've been promoting its integration with BuddyPress for a long time. Most significantly, bbPress 1 only runs on WordPress versions older than 4.7, because of a BackPress conflict (which is nested inside bbPress 1) with WordPress 4.7's WP_Taxonomy class.

If your site is still using Legacy Forums, you will need to migrate to bbPress 2 to run BuddyPress 3.0. See https://bpdevel.wordpress.com/2017/12/07/legacy-forums-support-will-be/ for more information.

Fixes #5351
See #7502

File:
1 edited

Legend:

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

    r11605 r11763  
    549549    if ( bp_is_active( 'blogs' ) && is_multisite() ) {
    550550        $options['blogs']   = _x( 'Blogs', 'search form', 'buddypress' );
    551     }
    552 
    553     if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() && bp_forums_has_directory() ) {
    554         $options['forums']  = _x( 'Forums', 'search form', 'buddypress' );
    555551    }
    556552
     
    22002196 *
    22012197 * @since 1.5.0
     2198 * @since 3.0.0 Required for bbPress 2 integration.
    22022199 *
    22032200 * @return bool True if the current page is part of the Forums component.
     
    24742471
    24752472/**
    2476  * Is this a user's forums page?
    2477  *
    2478  * Eg http://example.com/members/joe/forums/ (or a subpage thereof).
    2479  *
    2480  * @since 1.5.0
    2481  *
    2482  * @return bool True if the current page is a user's forums page.
    2483  */
    2484 function bp_is_user_forums() {
    2485 
    2486     if ( ! bp_is_active( 'forums' ) ) {
    2487         return false;
    2488     }
    2489 
    2490     if ( bp_is_user() && bp_is_forums_component() ) {
    2491         return true;
    2492     }
    2493 
    2494     return false;
    2495 }
    2496 
    2497 /**
    2498  * Is this a user's "Topics Started" page?
    2499  *
    2500  * Eg http://example.com/members/joe/forums/topics/.
    2501  *
    2502  * @since 1.5.0
    2503  *
    2504  * @return bool True if the current page is a user's Topics Started page.
    2505  */
    2506 function bp_is_user_forums_started() {
    2507     return (bool) ( bp_is_user_forums() && bp_is_current_action( 'topics' ) );
    2508 }
    2509 
    2510 /**
    2511  * Is this a user's "Replied To" page?
    2512  *
    2513  * Eg http://example.com/members/joe/forums/replies/.
    2514  *
    2515  * @since 1.5.0
    2516  *
    2517  * @return bool True if the current page is a user's Replied To forums page.
    2518  */
    2519 function bp_is_user_forums_replied_to() {
    2520     return (bool) ( bp_is_user_forums() && bp_is_current_action( 'replies' ) );
    2521 }
    2522 
    2523 /**
    25242473 * Is the current page part of a user's Groups page?
    25252474 *
     
    27562705
    27572706/**
    2758  * Is the current page a group's forum page?
    2759  *
    2760  * Only applies to legacy bbPress forums.
    2761  *
    2762  * @since 1.1.0
    2763  *
    2764  * @return bool True if the current page is a group forum page.
    2765  */
    2766 function bp_is_group_forum() {
    2767     $retval = false;
    2768 
    2769     // At a forum URL.
    2770     if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) ) {
    2771         $retval = true;
    2772 
    2773         // If at a forum URL, set back to false if forums are inactive, or not
    2774         // installed correctly.
    2775         if ( ! bp_is_active( 'forums' ) || ! bp_forums_is_installed_correctly() ) {
    2776             $retval = false;
    2777         }
    2778     }
    2779 
    2780     return $retval;
    2781 }
    2782 
    2783 /**
    27842707 * Is the current page a group's activity page?
    27852708 *
     
    28052728 * Is the current page a group forum topic?
    28062729 *
    2807  * Only applies to legacy bbPress (1.x) forums.
    2808  *
    28092730 * @since 1.1.0
     2731 * @since 3.0.0 Required for bbPress 2 integration.
    28102732 *
    28112733 * @return bool True if the current page is part of a group forum topic.
     
    28182740 * Is the current page a group forum topic edit page?
    28192741 *
    2820  * Only applies to legacy bbPress (1.x) forums.
    2821  *
    28222742 * @since 1.2.0
     2743 * @since 3.0.0 Required for bbPress 2 integration.
    28232744 *
    28242745 * @return bool True if the current page is part of a group forum topic edit page.
     
    34153336        if ( bp_is_group_members() ) {
    34163337            $bp_classes[] = 'group-members';
    3417         }
    3418 
    3419         if ( bp_is_group_forum_topic() ) {
    3420             $bp_classes[] = 'group-forum-topic';
    3421         }
    3422 
    3423         if ( bp_is_group_forum_topic_edit() ) {
    3424             $bp_classes[] = 'group-forum-topic-edit';
    3425         }
    3426 
    3427         if ( bp_is_group_forum() ) {
    3428             $bp_classes[] = 'group-forum';
    34293338        }
    34303339
     
    35263435    } elseif ( bp_is_activation_page() ) {
    35273436        $bp_classes[] = 'bp_activate';
    3528 
    3529     } elseif ( bp_is_forums_component() && bp_is_directory() ) {
    3530         $bp_classes[] = 'bp_forum';
    35313437    }
    35323438
Note: See TracChangeset for help on using the changeset viewer.