Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2023 12:24:49 AM (2 years ago)
Author:
espellcaste
Message:

Properly declare missing properties to classes in the Members component.

See #7018

File:
1 edited

Legend:

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

    r13108 r13404  
    107107     */
    108108    public $full_name;
     109
     110    /**
     111     * Check if post/comment replies are disabled.
     112     *
     113     * @since 1.0.0
     114     * @var bool
     115     */
     116    public $disable_blogforum_replies;
     117
     118    /**
     119     * If more items are available.
     120     *
     121     * @since 1.0.0
     122     * @var bool
     123     */
     124    public $has_more_items;
     125
     126    /**
     127     * An array of the logged in user's favorite activities.
     128     *
     129     * @since 1.0.0
     130     * @var array
     131     */
     132    public $my_favs;
     133
     134    /**
     135     * An array of parent activities.
     136     *
     137     * @since 1.0.0
     138     * @var array
     139     */
     140    public $activity_parents;
    109141
    110142    /**
     
    138170     */
    139171    public function __construct( $args ) {
    140         $bp = buddypress();
    141 
    142172        $function_args = func_get_args();
    143173
     
    284314        if ( !empty( $activity_parents['activities'] ) ) {
    285315            foreach( $activity_parents['activities'] as $parent ) {
    286                 $this->activity_parents[$parent->id] = $parent;
     316                $this->activity_parents[ $parent->id ] = $parent;
    287317            }
    288318
Note: See TracChangeset for help on using the changeset viewer.