Skip to content

Commit

Permalink
Improve inline comments for the BP_Members_Invitations_Component
Browse files Browse the repository at this point in the history
- 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 buddypress#354



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13993 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
  • Loading branch information
imath committed Aug 1, 2024
1 parent 10e5a07 commit 8cfca18
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,25 @@

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/**
* BuddyPress Invitations Component Class.
*
* Invitations are actually a deactivable feature of the Members component. To make sure this feature
* page slugs can be customized using the BP Rewrites API, it was decided to extend the `BP_Component`
* class to benefit from the improvements added to it during 12.0.0 into the "rewrite" area.
* @see `BP_Component::register_nav()`.
*
* @since 12.0.0
*/
class BP_Members_Invitations_Component extends BP_Component {

function __construct() {
/**
* Start the invitations feature creation process.
*
* @since 12.0.0
*/
public function __construct() {
parent::start(
'members_invitations',
__( 'Members Invitations', 'buddypress' ),
Expand Down

0 comments on commit 8cfca18

Please sign in to comment.