Skip to:
Content

BuddyPress.org

Changeset 13993


Ignore:
Timestamp:
08/01/2024 10:29:23 AM (16 months ago)
Author:
imath
Message:

Improve inline comments for the BP_Members_Invitations_Component

  • Add a PHP doc block to this class.
  • Add another PHP doc block to the class constructor.
  • Add the missing public keyword to this constructor.

Fixes #9220
Closes https://github.com/buddypress/buddypress/pull/354

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-invitations-component.php

    r13877 r13993  
    1010// Exit if accessed directly.
    1111defined( 'ABSPATH' ) || exit;
     12
     13/**
     14 * BuddyPress Invitations Component Class.
     15 *
     16 * Invitations are actually a deactivable feature of the Members component. To make sure this feature
     17 * page slugs can be customized using the BP Rewrites API, it was decided to extend the `BP_Component`
     18 * class to benefit from the improvements added to it during 12.0.0 into the "rewrite" area.
     19 * @see `BP_Component::register_nav()`.
     20 *
     21 * @since 12.0.0
     22 */
    1223class BP_Members_Invitations_Component extends BP_Component {
    1324
    14     function __construct() {
     25    /**
     26     * Start the invitations feature creation process.
     27     *
     28     * @since 12.0.0
     29     */
     30    public function __construct() {
    1531        parent::start(
    1632            'members_invitations',
Note: See TracChangeset for help on using the changeset viewer.