Changeset 3309
- Timestamp:
- 06/09/2011 03:14:54 PM (15 years ago)
- Location:
- branches/plugin
- Files:
-
- 10 edited
-
bbp-admin/bbp-forums.php (modified) (1 diff)
-
bbp-admin/bbp-replies.php (modified) (1 diff)
-
bbp-admin/bbp-topics.php (modified) (1 diff)
-
bbp-includes/bbp-common-template.php (modified) (1 diff)
-
bbp-includes/bbp-core-compatibility.php (modified) (2 diffs)
-
bbp-includes/bbp-forum-template.php (modified) (2 diffs)
-
bbp-includes/bbp-reply-functions.php (modified) (2 diffs)
-
bbp-includes/bbp-topic-functions.php (modified) (3 diffs)
-
bbp-includes/bbp-topic-template.php (modified) (1 diff)
-
bbpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-forums.php
r3286 r3309 108 108 function _setup_help() { 109 109 110 // Prevent debug notices111 $contextual_help = '';110 // Define local variable(s) 111 $contextual_help = array(); 112 112 113 113 /** New/Edit **********************************************************/ -
branches/plugin/bbp-admin/bbp-replies.php
r3297 r3309 120 120 function _setup_help() { 121 121 122 // Prevent debug notices123 $contextual_help = '';122 // Define local variable(s) 123 $contextual_help = array(); 124 124 125 125 /** New/Edit **********************************************************/ -
branches/plugin/bbp-admin/bbp-topics.php
r3297 r3309 120 120 function _setup_help() { 121 121 122 // Prevent debug notices123 $contextual_help = '';122 // Define local variable(s) 123 $contextual_help = array(); 124 124 125 125 /** New/Edit **********************************************************/ -
branches/plugin/bbp-includes/bbp-common-template.php
r3304 r3309 1447 1447 return; 1448 1448 1449 // Prevent debug notices1449 // Define local variable(s) 1450 1450 $errors = $messages = array(); 1451 1451 -
branches/plugin/bbp-includes/bbp-core-compatibility.php
r3304 r3309 547 547 global $bbp; 548 548 549 // Prevent debug notices549 // Define local variable(s) 550 550 $templates = array(); 551 551 $new_template = ''; … … 869 869 global $bbp; 870 870 871 // Prevent debug notice871 // Define local variable(s) 872 872 $new_content = ''; 873 873 -
branches/plugin/bbp-includes/bbp-forum-template.php
r3304 r3309 1744 1744 if ( !empty( $forum_id ) ) { 1745 1745 1746 // Prevent debug notices1746 // Define local variable(s) 1747 1747 $link = ''; 1748 1748 … … 1806 1806 if ( !empty( $forum_id ) ) { 1807 1807 1808 // Prevent debug notices1808 // Define local variable(s) 1809 1809 $link = ''; 1810 1810 -
branches/plugin/bbp-includes/bbp-reply-functions.php
r3295 r3309 147 147 check_admin_referer( 'bbp-new-reply' ); 148 148 149 // Set defaults to prevent debug notices149 // Define local variable(s) 150 150 $topic_id = $forum_id = $reply_author = $anonymous_data = 0; 151 151 $reply_title = $reply_content = $terms = ''; … … 381 381 global $bbp; 382 382 383 // Set defaults to prevent debug notices383 // Define local variable(s) 384 384 $reply = $reply_id = $topic_id = $forum_id = $anonymous_data = 0; 385 385 $reply_title = $reply_content = $reply_edit_reason = $terms = ''; -
branches/plugin/bbp-includes/bbp-topic-functions.php
r3296 r3309 54 54 check_admin_referer( 'bbp-new-topic' ); 55 55 56 // Set defaults to prevent debug notices56 // Define local variable(s) 57 57 $forum_id = $topic_author = $anonymous_data = 0; 58 58 $topic_title = $topic_content = ''; … … 320 320 global $bbp; 321 321 322 // Set defaults to prevent debug notices322 // Define local variable(s) 323 323 $topic_id = $forum_id = $anonymous_data = 0; 324 324 $topic_title = $topic_content = $topic_edit_reason = ''; … … 833 833 global $bbp; 834 834 835 // Prevent debug notices835 // Define local variable(s) 836 836 $source_topic_id = $destination_topic_id = 0; 837 837 $source_topic = $destination_topic = 0; -
branches/plugin/bbp-includes/bbp-topic-template.php
r3304 r3309 2912 2912 } 2913 2913 2914 // Prevent debug notices2914 // Define local variable(s) 2915 2915 } else { 2916 2916 $new_terms = ''; -
branches/plugin/bbpress.php
r3307 r3309 333 333 334 334 // Post type identifiers 335 $this->forum_post_type = apply_filters( 'bbp_forum_post_type', 'forum' );336 $this->topic_post_type = apply_filters( 'bbp_topic_post_type', 'topic' );337 $this->reply_post_type = apply_filters( 'bbp_reply_post_type', 'reply' );338 $this->topic_tag_id = apply_filters( 'bbp_topic_tag_id', 'topic-tag' );335 $this->forum_post_type = apply_filters( 'bbp_forum_post_type', 'forum' ); 336 $this->topic_post_type = apply_filters( 'bbp_topic_post_type', 'topic' ); 337 $this->reply_post_type = apply_filters( 'bbp_reply_post_type', 'reply' ); 338 $this->topic_tag_id = apply_filters( 'bbp_topic_tag_id', 'topic-tag' ); 339 339 340 340 // Status identifiers 341 $this->spam_status_id = apply_filters( 'bbp_spam_post_status', 'spam' );342 $this->closed_status_id = apply_filters( 'bbp_closed_post_status', 'closed' );343 $this->orphan_status_id = apply_filters( 'bbp_orphan_post_status', 'orphan' );344 $this->hidden_status_id = apply_filters( 'bbp_hidden_post_status', 'hidden' );345 $this->trash_status_id = 'trash';341 $this->spam_status_id = apply_filters( 'bbp_spam_post_status', 'spam' ); 342 $this->closed_status_id = apply_filters( 'bbp_closed_post_status', 'closed' ); 343 $this->orphan_status_id = apply_filters( 'bbp_orphan_post_status', 'orphan' ); 344 $this->hidden_status_id = apply_filters( 'bbp_hidden_post_status', 'hidden' ); 345 $this->trash_status_id = 'trash'; 346 346 347 347 // Other identifiers 348 $this->user_id = apply_filters( 'bbp_view_id', 'bbp_user' );349 $this->view_id = apply_filters( 'bbp_spam_id', 'bbp_view' );350 $this->edit_id = apply_filters( 'bbp_spam_id', 'edit' );348 $this->user_id = apply_filters( 'bbp_view_id', 'bbp_user' ); 349 $this->view_id = apply_filters( 'bbp_spam_id', 'bbp_view' ); 350 $this->edit_id = apply_filters( 'bbp_spam_id', 'edit' ); 351 351 352 352 /** Slugs *************************************************************/ … … 357 357 358 358 // Should we include the root slug in front of component slugs 359 $prefix = !empty( $this->root_slug ) && get_option( '_bbp_include_root', true ) ? trailingslashit( $this->root_slug ) : '';359 $prefix = !empty( $this->root_slug ) && get_option( '_bbp_include_root', true ) ? trailingslashit( $this->root_slug ) : ''; 360 360 361 361 // Component slugs 362 $this->forum_slug = apply_filters( 'bbp_forum_slug', $prefix . get_option( '_bbp_forum_slug', 'forum' ) );363 $this->topic_slug = apply_filters( 'bbp_topic_slug', $prefix . get_option( '_bbp_topic_slug', 'topic' ) );364 $this->reply_slug = apply_filters( 'bbp_reply_slug', $prefix . get_option( '_bbp_reply_slug', 'reply' ) );362 $this->forum_slug = apply_filters( 'bbp_forum_slug', $prefix . get_option( '_bbp_forum_slug', 'forum' ) ); 363 $this->topic_slug = apply_filters( 'bbp_topic_slug', $prefix . get_option( '_bbp_topic_slug', 'topic' ) ); 364 $this->reply_slug = apply_filters( 'bbp_reply_slug', $prefix . get_option( '_bbp_reply_slug', 'reply' ) ); 365 365 366 366 // Taxonomy slugs 367 $this->topic_tag_slug = apply_filters( 'bbp_topic_tag_slug', $prefix . get_option( '_bbp_topic_tag_slug', 'topic-tag' ) );367 $this->topic_tag_slug = apply_filters( 'bbp_topic_tag_slug', $prefix . get_option( '_bbp_topic_tag_slug', 'topic-tag' ) ); 368 368 369 369 /** Other Slugs *******************************************************/ 370 370 371 $this->user_slug = apply_filters( 'bbp_user_slug', $prefix . get_option( '_bbp_user_slug', 'user' ) );372 $this->view_slug = apply_filters( 'bbp_view_slug', $prefix . get_option( '_bbp_view_slug', 'view' ) );371 $this->user_slug = apply_filters( 'bbp_user_slug', $prefix . get_option( '_bbp_user_slug', 'user' ) ); 372 $this->view_slug = apply_filters( 'bbp_view_slug', $prefix . get_option( '_bbp_view_slug', 'view' ) ); 373 373 374 374 /** Misc **************************************************************/ 375 375 376 376 // Errors 377 $this->errors = new WP_Error();377 $this->errors = new WP_Error(); 378 378 379 379 // Views 380 $this->views = array();380 $this->views = array(); 381 381 382 382 // Tab Index
Note: See TracChangeset
for help on using the changeset viewer.