Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/27/2011 10:18:38 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Add _insert_ functions for forums, topics, and replies. Audit (forum/topic/hidden) meta key and updater function names and and normalize them where needed.

(Existing installs will need to run recounts, or let them adjust themselves naturally as new topics and replies come in.)

File:
1 edited

Legend:

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

    r3348 r3349  
    144144            </tr>
    145145
    146             <?php if ( isset( $hidden_topic_count ) ) : ?>
     146            <?php if ( isset( $topic_count_hidden ) ) : ?>
    147147
    148148                <tr>
    149149
    150150                    <?php
    151                         $num  = $hidden_topic_count;
    152                         $text = _n( 'Hidden Topic', 'Hidden Topics', $hidden_topic_count, 'bbpress' );
     151                        $num  = $topic_count_hidden;
     152                        $text = _n( 'Hidden Topic', 'Hidden Topics', $topic_count_hidden, 'bbpress' );
    153153                        $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) );
    154154                        $num  = '<a href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $num  . '</a>';
     
    163163            <?php endif; ?>
    164164
    165             <?php if ( isset( $hidden_reply_count ) ) : ?>
     165            <?php if ( isset( $reply_count_hidden ) ) : ?>
    166166
    167167                <tr>
    168168
    169169                    <?php
    170                         $num  = $hidden_reply_count;
    171                         $text = _n( 'Hidden Reply', 'Hidden Replies', $hidden_reply_count, 'bbpress' );
     170                        $num  = $reply_count_hidden;
     171                        $text = _n( 'Hidden Reply', 'Hidden Replies', $reply_count_hidden, 'bbpress' );
    172172                        $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) );
    173173                        $num  = '<a href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $num  . '</a>';
Note: See TracChangeset for help on using the changeset viewer.