Changeset 6030
- Timestamp:
- 05/13/2012 07:56:01 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-caps.php
r5332 r6030 193 193 // Administrator 194 194 case 'administrator' : 195 196 195 $caps = array( 197 198 196 // Misc 199 197 'bp_moderate', 200 'bp_throttle',201 'bp_view_trash'202 198 ); 203 199 … … 206 202 // Moderator 207 203 case $moderator_role : 208 209 204 $caps = array( 210 211 205 // Misc 212 206 'bp_moderate', 213 'bp_throttle',214 'bp_view_trash',215 207 ); 216 208 … … 226 218 case $participant_role : 227 219 default : 228 229 220 $caps = array(); 230 231 221 break; 232 222 } -
trunk/bp-loader.php
r6025 r6030 208 208 public $is_single_item = false; 209 209 210 /** Errors ****************************************************************/211 212 /**213 * @var array|WP_Error Used to log and display errors214 */215 public $errors = array();216 217 /** Forms *****************************************************************/218 219 /**220 * @var int The current tab index for form building221 */222 public $tab_index = 0;223 224 /** Theme Compat **********************************************************/225 226 /**227 * @var string Theme to use for theme compatibility228 */229 public $theme_compat = '';230 231 /** Extensions ************************************************************/232 233 /**234 * @var mixed BuddyPress add-ons should append globals to this235 */236 public $extend = false;237 238 210 /** Option Overload *******************************************************/ 239 211 … … 242 214 */ 243 215 public $options = array(); 244 245 /** Permastructs **********************************************************/246 247 /**248 * @var string User struct249 */250 public $user_id = '';251 252 /**253 * @var string Edit struct254 */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 replies266 */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 = '';298 216 299 217 /** Functions *************************************************************/ … … 418 336 $this->lang_dir = $this->plugin_dir . 'bp-languages'; 419 337 420 /** Identifiers *******************************************************/421 422 // Status identifiers423 $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 identifiers433 $this->user_id = apply_filters( 'bp_user_id', 'bp_user' );434 $this->edit_id = apply_filters( 'bp_edit_id', 'edit' );435 436 338 /** Users *************************************************************/ 437 339 438 340 $this->current_user = new stdClass(); 439 341 $this->displayed_user = new stdClass(); 440 441 /** Misc **************************************************************/442 443 // Errors444 $this->errors = new WP_Error();445 446 // Tab Index447 $this->tab_index = apply_filters( 'bp_default_tab_index', 100 );448 342 } 449 343
Note: See TracChangeset
for help on using the changeset viewer.