Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/28/2023 04:15:13 PM (17 months ago)
Author:
dcavins
Message:

Prepare for community visibility.

Reset some code changes in preparation for the new
community visibility feature.
Introduce bp_core_get_component_from_directory_page_id().

Props imath.

See #8734.

File:
1 edited

Legend:

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

    r13507 r13532  
    399399
    400400    /**
    401      * Set up the component post statuses.
    402      *
    403      * @since 12.0.0
    404      */
    405     public function register_post_statuses() {
    406         register_post_status(
    407             'bp_restricted',
    408             array(
    409                 'label'    => _x( 'Restricted to members', '`buddypress` post type post status', 'buddypress' ),
    410                 'public'   => false,
    411                 'internal' => true,
    412             )
    413         );
    414 
    415         parent::register_post_statuses();
    416     }
    417 
    418     /**
    419401     * Parse the WP_Query and eventually set the BP Search mechanism.
    420402     *
Note: See TracChangeset for help on using the changeset viewer.