Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/15/2015 06:18:28 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Moderation: Fix some copy-pasta and make sure form terms are formatted correctly. See #459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/template.php

    r5838 r5841  
    492492        } elseif ( bbp_is_single_forum() || bbp_is_forum_edit() ) {
    493493
    494             $forum_id = get_the_ID();
     494            // Get the forum ID
     495            $forum_id = bbp_get_forum_id( get_the_ID() );
    495496
    496497            // Forum exists
    497498            if ( ! empty( $forum_id ) ) {
    498                 $new_terms = bbp_get_forum_mod_names( $forum_id );
    499 
    500             // Define local variable(s)
    501             } else {
    502                 $new_terms = '';
     499                $forum_mods = bbp_get_forum_mod_names( $forum_id );
    503500            }
    504 
    505             // Set the return value
    506             $forum_mods = ( ! empty( $new_terms ) ) ? implode( ', ', $new_terms ) : '';
    507501
    508502        // No data
Note: See TracChangeset for help on using the changeset viewer.