Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/10/2011 06:29:37 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Code formatting improvements to bbp-topic-functions.php and prevent possible debug notices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/bbp-includes/bbp-topic-functions.php

    r3540 r3545  
    792792
    793793    // Validate topic_id
    794     $topic_id = bbp_get_topic_id( $topic_id );
     794    $topic_id  = bbp_get_topic_id( $topic_id );
     795
     796    // Define local variable(s)
     797    $active_id = 0;
    795798
    796799    // Topic was passed
     
    881884            // Add non-matches to the updated array
    882885            if ( $topic_id != $sticky_topic_id ) {
    883                 $updated_stickies[$k] = $v;
     886                $updated_stickies[] = $sticky_topic_id;
    884887            }
    885888        }
     
    18251828        return;
    18261829
     1830    $failure   = '';                         // Empty failure string
    18271831    $view_all  = false;                      // Assume not viewing all
    18281832    $action    = $_GET['action'];            // What action is taking place?
     
    18301834    $success   = false;                      // Flag
    18311835    $post_data = array( 'ID' => $topic_id ); // Prelim array
     1836    $redirect  = '';                         // Empty redirect URL
    18321837
    18331838    // Make sure topic exists
    1834     if ( !$topic = bbp_get_topic( $topic_id ) )
     1839    $topic = bbp_get_topic( $topic_id );
     1840    if ( empty( $topic ) )
    18351841        return;
    18361842
     
    25002506    // Get topic tags
    25012507    $terms = get_the_terms( $topic_id, bbp_get_topic_tag_tax_id() );
     2508
     2509    // Define local variable(s)
     2510    $term_names = array();
    25022511
    25032512    // Topic has tags
Note: See TracChangeset for help on using the changeset viewer.