Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/07/2023 01:31:37 AM (2 years ago)
Author:
espellcaste
Message:

Properly declare missing properties to several classes.

Closes https://github.com/buddypress/buddypress/pull/54
See #7018

File:
1 edited

Legend:

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

    r13395 r13399  
    3131     *
    3232     * @internal
    33      * @var string $name
     33     *
     34     * @var string
    3435     */
    3536    public $name = '';
     
    3940     *
    4041     * @since 1.5.0
    41      * @var string $id
     42     * @var string
    4243     */
    4344    public $id = '';
     
    4748     *
    4849     * @since 1.5.0
    49      * @var string $slug
     50     * @var string
    5051     */
    5152    public $slug = '';
     
    5556     *
    5657     * @since 1.5.0
    57      * @var bool $has_directory
     58     * @var bool
    5859     */
    5960    public $has_directory = false;
     
    6364     *
    6465     * @since 1.5.0
    65      * @var string $path
     66     * @var string
    6667     */
    6768    public $path = '';
     
    7172     *
    7273     * @since 1.5.0
    73      * @var WP_Query $query
     74     * @var WP_Query
    7475     */
    7576    public $query = false;
     
    7980     *
    8081     * @since 1.5.0
    81      * @var string $current_id
     82     * @var string
    8283     */
    8384    public $current_id = '';
     
    8788     *
    8889     * @since 1.5.0
    89      * @var callable $notification_callback
     90     * @var callable
    9091     */
    9192    public $notification_callback = '';
     
    9596     *
    9697     * @since 1.5.0
    97      * @var array $admin_menu
     98     * @var array
    9899     */
    99100    public $admin_menu = '';
     
    103104     *
    104105     * @since 1.6.0
    105      * @var string $search_string
     106     * @var string
    106107     */
    107108    public $search_string = '';
     
    111112     *
    112113     * @since 1.6.0
    113      * @var string $root_slug
     114     * @var string
    114115     */
    115116    public $root_slug = '';
     
    119120     *
    120121     * @since 2.0.0
    121      *
    122122     * @var array
    123123     */
     
    128128     *
    129129     * @since 2.0.0
    130      *
    131130     * @var array
    132131     */
     
    145144     *
    146145     * @since 9.0.0
    147      *
    148146     * @var array
    149147     */
    150148    public $block_globals = array();
     149
     150    /**
     151     * Menu position of the WP Toolbar's "My Account menu".
     152     *
     153     * @since 1.5.0
     154     * @var int
     155     */
     156    public $adminbar_myaccount_order = 90;
     157
     158    /**
     159     * An array of feature names.
     160     *
     161     * @since 1.5.0
     162     * @var string[]
     163     */
     164    public $features = array();
     165
     166    /**
     167     * Component's directory title.
     168     *
     169     * @since 2.0.0
     170     * @var string
     171     */
     172    public $directory_title = '';
    151173
    152174    /** Methods ***************************************************************/
     
    200222                $this->search_query_arg = sanitize_title( $params['search_query_arg'] );
    201223            }
    202 
    203         // Set defaults if not passed.
    204         } else {
    205             // New component menus are added before the settings menu if not set.
    206             $this->adminbar_myaccount_order = 90;
    207224        }
    208225
Note: See TracChangeset for help on using the changeset viewer.