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-includes/bbp-common-functions.php

    r3348 r3349  
    431431
    432432            // Total hidden (private + spam + trash)
    433             $hidden_topic_count = $topics['private'] + $topics['spammed'] + $topics['trashed'];
     433            $topic_count_hidden = $topics['private'] + $topics['spammed'] + $topics['trashed'];
    434434
    435435            // Generate the hidden topic count's title attribute
     
    463463
    464464            // Total hidden (private + spam + trash)
    465             $hidden_reply_count = $replies['private'] + $replies['spammed'] + $replies['trashed'];
     465            $reply_count_hidden = $replies['private'] + $replies['spammed'] + $replies['trashed'];
    466466
    467467            // Generate the hidden topic count's title attribute
     
    489489
    490490    // Tally the tallies
    491     $statistics = compact( 'user_count', 'forum_count', 'topic_count', 'hidden_topic_count', 'reply_count', 'hidden_reply_count', 'topic_tag_count', 'empty_topic_tag_count' );
     491    $statistics = compact( 'user_count', 'forum_count', 'topic_count', 'topic_count_hidden', 'reply_count', 'reply_count_hidden', 'topic_tag_count', 'empty_topic_tag_count' );
    492492    $statistics = array_map( 'absint',             $statistics );
    493493    $statistics = array_map( 'number_format_i18n', $statistics );
Note: See TracChangeset for help on using the changeset viewer.