Skip to:
Content

Ignore:
Timestamp:
12/08/17 00:22:09 (6 weeks 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-functions.php

    r11698 r11763  
    446446} 
    447447 
     448 
     449/** 
     450 * Return the parent forum ID for the Legacy Forums abstraction layer. 
     451 * 
     452 * @since 1.5.0 
     453 * @since 3.0.0 Supported for compatibility with bbPress 2. 
     454 * 
     455 * @return int Forum ID. 
     456 */ 
     457function bp_forums_parent_forum_id() { 
     458 
     459    /** 
     460     * Filters the parent forum ID for the bbPress abstraction layer. 
     461     * 
     462     * @since 1.5.0 
     463     * 
     464     * @param int BP_FORUMS_PARENT_FORUM_ID The Parent forum ID constant. 
     465     */ 
     466    return apply_filters( 'bp_forums_parent_forum_id', BP_FORUMS_PARENT_FORUM_ID ); 
     467} 
     468 
    448469/** Directory *****************************************************************/ 
    449470 
     
    467488        'notifications', 
    468489    ); 
    469  
    470     // Only add legacy forums if it is enabled 
    471     // prevents conflicts with bbPress, which also uses the same 'forums' id. 
    472     if ( class_exists( 'BP_Forums_Component' ) ) { 
    473         $components[] = 'forums'; 
    474     } 
    475490 
    476491    return $components; 
     
    17311746 
    17321747/** 
    1733  * Are oembeds allowed in forum posts? 
    1734  * 
    1735  * @since 1.5.0 
    1736  * 
    1737  * @return bool False when forum post embed support is disabled; true when 
    1738  *              enabled. Default: true. 
    1739  */ 
    1740 function bp_use_embed_in_forum_posts() { 
    1741  
    1742     /** 
    1743      * Filters whether or not oEmbeds are allowed in forum posts. 
    1744      * 
    1745      * @since 1.5.0 
    1746      * 
    1747      * @param bool $value Whether or not oEmbeds are allowed. 
    1748      */ 
    1749     return apply_filters( 'bp_use_embed_in_forum_posts', !defined( 'BP_EMBED_DISABLE_FORUM_POSTS' ) || !BP_EMBED_DISABLE_FORUM_POSTS ); 
    1750 } 
    1751  
    1752 /** 
    17531748 * Are oembeds allowed in private messages? 
    17541749 * 
     
    23562351                break; 
    23572352 
    2358             case 'forums': 
    2359                 $slug = bp_is_active( 'forums' ) ? bp_get_forums_root_slug() : ''; 
    2360                 $query_string = '/?fs='; 
    2361                 break; 
    2362  
    23632353            case 'groups': 
    23642354                $slug = bp_is_active( 'groups' ) ? bp_get_groups_root_slug() : ''; 
     
    24642454 
    24652455    $retired_components = array( 
    2466         'forums' => array( 
    2467             'title'       => __( 'Group Forums', 'buddypress' ), 
    2468             'description' => sprintf( __( 'BuddyPress Forums are retired. Use %s.', 'buddypress' ), '<a href="https://bbpress.org/">bbPress</a>' ) 
    2469         ), 
    24702456    ); 
    24712457 
     
    24982484            'title'       => __( 'User Groups', 'buddypress' ), 
    24992485            'description' => __( 'Groups allow your users to organize themselves into specific public, private or hidden sections with separate activity streams and member listings.', 'buddypress' ) 
    2500         ), 
    2501         'forums'   => array( 
    2502             'title'       => __( 'Group Forums (Legacy)', 'buddypress' ), 
    2503             'description' => __( 'Group forums allow for focused, bulletin-board style conversations.', 'buddypress' ) 
    25042486        ), 
    25052487        'blogs'    => array( 
Note: See TracChangeset for help on using the changeset viewer.