Skip to:
Content

BuddyPress.org

Changeset 6030


Ignore:
Timestamp:
05/13/2012 07:56:01 PM (13 years ago)
Author:
djpaul
Message:

Remove some unused class properties which were introduced when some changes in bbPress were brought into BuddyPress. They will be reintroduced in a future release.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-caps.php

    r5332 r6030  
    193193        // Administrator
    194194        case 'administrator' :
    195 
    196195            $caps = array(
    197 
    198196                // Misc
    199197                'bp_moderate',
    200                 'bp_throttle',
    201                 'bp_view_trash'
    202198            );
    203199
     
    206202        // Moderator
    207203        case $moderator_role :
    208 
    209204            $caps = array(
    210 
    211205                // Misc
    212206                'bp_moderate',
    213                 'bp_throttle',
    214                 'bp_view_trash',
    215207            );
    216208
     
    226218        case $participant_role :
    227219        default                :
    228 
    229220            $caps = array();
    230 
    231221            break;
    232222    }
  • trunk/bp-loader.php

    r6025 r6030  
    208208    public $is_single_item = false;
    209209
    210     /** Errors ****************************************************************/
    211 
    212     /**
    213      * @var array|WP_Error Used to log and display errors
    214      */
    215     public $errors = array();
    216 
    217     /** Forms *****************************************************************/
    218 
    219     /**
    220      * @var int The current tab index for form building
    221      */
    222     public $tab_index = 0;
    223 
    224     /** Theme Compat **********************************************************/
    225 
    226     /**
    227      * @var string Theme to use for theme compatibility
    228      */
    229     public $theme_compat = '';
    230 
    231     /** Extensions ************************************************************/
    232 
    233     /**
    234      * @var mixed BuddyPress add-ons should append globals to this
    235      */
    236     public $extend = false;
    237 
    238210    /** Option Overload *******************************************************/
    239211
     
    242214     */
    243215    public $options = array();
    244 
    245     /** Permastructs **********************************************************/
    246 
    247     /**
    248      * @var string User struct
    249      */
    250     public $user_id = '';
    251 
    252     /**
    253      * @var string Edit struct
    254      */
    255     public $edit_id = '';
    256 
    257     /** Statuses **************************************************************/
    258 
    259     /**
    260      * @var string Public post status id. Used by forums, topics, and replies.
    261      */
    262     public $public_status_id = '';
    263 
    264     /**
    265      * @var string Pending post status id. Used by topics and replies
    266      */
    267     public $pending_status_id = '';
    268 
    269     /**
    270      * @var string Private post status id. Used by forums and topics.
    271      */
    272     public $private_status_id = '';
    273 
    274     /**
    275      * @var string Closed post status id. Used by topics.
    276      */
    277     public $closed_status_id = '';
    278 
    279     /**
    280      * @var string Spam post status id. Used by topics and replies.
    281      */
    282     public $spam_status_id = '';
    283 
    284     /**
    285      * @var string Trash post status id. Used by topics and replies.
    286      */
    287     public $trash_status_id = '';
    288 
    289     /**
    290      * @var string Orphan post status id. Used by topics and replies.
    291      */
    292     public $orphan_status_id = '';
    293 
    294     /**
    295      * @var string Hidden post status id. Used by forums.
    296      */
    297     public $hidden_status_id = '';
    298216
    299217    /** Functions *************************************************************/
     
    418336        $this->lang_dir   = $this->plugin_dir . 'bp-languages';
    419337
    420         /** Identifiers *******************************************************/
    421 
    422         // Status identifiers
    423         $this->spam_status_id     = apply_filters( 'bp_spam_post_status',    'spam'    );
    424         $this->closed_status_id   = apply_filters( 'bp_closed_post_status',  'closed'  );
    425         $this->orphan_status_id   = apply_filters( 'bp_orphan_post_status',  'orphan'  );
    426         $this->public_status_id   = apply_filters( 'bp_public_post_status',  'publish' );
    427         $this->pending_status_id  = apply_filters( 'bp_pending_post_status', 'pending' );
    428         $this->private_status_id  = apply_filters( 'bp_private_post_status', 'private' );
    429         $this->hidden_status_id   = apply_filters( 'bp_hidden_post_status',  'hidden'  );
    430         $this->trash_status_id    = apply_filters( 'bp_trash_post_status',   'trash'   );
    431 
    432         // Other identifiers
    433         $this->user_id            = apply_filters( 'bp_user_id', 'bp_user' );
    434         $this->edit_id            = apply_filters( 'bp_edit_id', 'edit'    );
    435 
    436338        /** Users *************************************************************/
    437339       
    438340        $this->current_user       = new stdClass();
    439341        $this->displayed_user     = new stdClass();
    440 
    441         /** Misc **************************************************************/
    442 
    443         // Errors
    444         $this->errors             = new WP_Error();
    445 
    446         // Tab Index
    447         $this->tab_index          = apply_filters( 'bp_default_tab_index', 100 );
    448342    }
    449343
Note: See TracChangeset for help on using the changeset viewer.