Skip to:
Content

bbPress.org

Changeset 2391


Ignore:
Timestamp:
01/14/2010 02:57:45 PM (14 years ago)
Author:
filosofo
Message:

Restore omitted global objects. Props Gautam Gupta. Fixes #1231.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/includes/functions.bb-recount.php

    r2356 r2391  
    138138function bb_recount_topic_tags()
    139139{
     140    global $bbdb, $wp_taxonomy_object;
     141
    140142    // Reset tag count to zero
    141143    $bbdb->query( "UPDATE $bbdb->topics SET tag_count = 0" );
     
    164166function bb_recount_tag_topics()
    165167{
     168    global $wp_taxonomy_object;
     169
    166170    // Get all tags
    167171    $terms = $wp_taxonomy_object->get_terms( 'bb_topic_tag', array( 'hide_empty' => false ) );
     
    185189function bb_recount_tag_delete_empty()
    186190{
     191    global $wp_taxonomy_object;
     192
    187193    // Get all tags
    188194    if ( !isset( $terms ) ) {
Note: See TracChangeset for help on using the changeset viewer.