Skip to:
Content

bbPress.org

Changeset 3309


Ignore:
Timestamp:
06/09/2011 03:14:54 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Inline doc fixes, whitespace clean-up.

Location:
branches/plugin
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-forums.php

    r3286 r3309  
    108108    function _setup_help() {
    109109
    110         // Prevent debug notices
    111         $contextual_help = '';
     110        // Define local variable(s)
     111        $contextual_help = array();
    112112
    113113        /** New/Edit **********************************************************/
  • branches/plugin/bbp-admin/bbp-replies.php

    r3297 r3309  
    120120    function _setup_help() {
    121121
    122         // Prevent debug notices
    123         $contextual_help = '';
     122        // Define local variable(s)
     123        $contextual_help = array();
    124124
    125125        /** New/Edit **********************************************************/
  • branches/plugin/bbp-admin/bbp-topics.php

    r3297 r3309  
    120120    function _setup_help() {
    121121
    122         // Prevent debug notices
    123         $contextual_help = '';
     122        // Define local variable(s)
     123        $contextual_help = array();
    124124
    125125        /** New/Edit **********************************************************/
  • branches/plugin/bbp-includes/bbp-common-template.php

    r3304 r3309  
    14471447        return;
    14481448
    1449     // Prevent debug notices
     1449    // Define local variable(s)
    14501450    $errors = $messages = array();
    14511451
  • branches/plugin/bbp-includes/bbp-core-compatibility.php

    r3304 r3309  
    547547    global $bbp;
    548548
    549     // Prevent debug notices
     549    // Define local variable(s)
    550550    $templates    = array();
    551551    $new_template = '';
     
    869869        global $bbp;
    870870
    871         // Prevent debug notice
     871        // Define local variable(s)
    872872        $new_content = '';
    873873
  • branches/plugin/bbp-includes/bbp-forum-template.php

    r3304 r3309  
    17441744        if ( !empty( $forum_id ) ) {
    17451745
    1746             // Prevent debug notices
     1746            // Define local variable(s)
    17471747            $link = '';
    17481748
     
    18061806        if ( !empty( $forum_id ) ) {
    18071807
    1808             // Prevent debug notices
     1808            // Define local variable(s)
    18091809            $link = '';
    18101810
  • branches/plugin/bbp-includes/bbp-reply-functions.php

    r3295 r3309  
    147147        check_admin_referer( 'bbp-new-reply' );
    148148
    149         // Set defaults to prevent debug notices
     149        // Define local variable(s)
    150150        $topic_id = $forum_id = $reply_author = $anonymous_data = 0;
    151151        $reply_title = $reply_content = $terms = '';
     
    381381        global $bbp;
    382382
    383         // Set defaults to prevent debug notices
     383        // Define local variable(s)
    384384        $reply = $reply_id = $topic_id = $forum_id = $anonymous_data = 0;
    385385        $reply_title = $reply_content = $reply_edit_reason = $terms = '';
  • branches/plugin/bbp-includes/bbp-topic-functions.php

    r3296 r3309  
    5454        check_admin_referer( 'bbp-new-topic' );
    5555
    56         // Set defaults to prevent debug notices
     56        // Define local variable(s)
    5757        $forum_id = $topic_author = $anonymous_data = 0;
    5858        $topic_title = $topic_content = '';
     
    320320        global $bbp;
    321321
    322         // Set defaults to prevent debug notices
     322        // Define local variable(s)
    323323        $topic_id = $forum_id = $anonymous_data = 0;
    324324        $topic_title = $topic_content = $topic_edit_reason = '';
     
    833833        global $bbp;
    834834
    835         // Prevent debug notices
     835        // Define local variable(s)
    836836        $source_topic_id = $destination_topic_id = 0;
    837837        $source_topic = $destination_topic = 0;
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3304 r3309  
    29122912                }
    29132913
    2914             // Prevent debug notices
     2914            // Define local variable(s)
    29152915            } else {
    29162916                $new_terms = '';
  • branches/plugin/bbpress.php

    r3307 r3309  
    333333
    334334        // 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' );
    339339
    340340        // 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';
    346346
    347347        // 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'     );
    351351       
    352352        /** Slugs *************************************************************/
     
    357357
    358358        // 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 ) : '';
    360360
    361361        // 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' ) );
    365365
    366366        // 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'   ) );
    368368
    369369        /** Other Slugs *******************************************************/
    370370
    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' ) );
    373373
    374374        /** Misc **************************************************************/
    375375
    376376        // Errors
    377         $this->errors = new WP_Error();
     377        $this->errors    = new WP_Error();
    378378
    379379        // Views
    380         $this->views = array();
     380        $this->views     = array();
    381381
    382382        // Tab Index
Note: See TracChangeset for help on using the changeset viewer.