Changeset 2391
- Timestamp:
- 01/14/2010 02:57:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/includes/functions.bb-recount.php
r2356 r2391 138 138 function bb_recount_topic_tags() 139 139 { 140 global $bbdb, $wp_taxonomy_object; 141 140 142 // Reset tag count to zero 141 143 $bbdb->query( "UPDATE $bbdb->topics SET tag_count = 0" ); … … 164 166 function bb_recount_tag_topics() 165 167 { 168 global $wp_taxonomy_object; 169 166 170 // Get all tags 167 171 $terms = $wp_taxonomy_object->get_terms( 'bb_topic_tag', array( 'hide_empty' => false ) ); … … 185 189 function bb_recount_tag_delete_empty() 186 190 { 191 global $wp_taxonomy_object; 192 187 193 // Get all tags 188 194 if ( !isset( $terms ) ) {
Note: See TracChangeset
for help on using the changeset viewer.