Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/22/2013 05:13:02 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add missing topic-tag code in bbp_admin_reset_handler(). Props netweb. Fixes #2096.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/tools.php

    r4695 r4704  
    11501150        /** Topic Tags ********************************************************/
    11511151
    1152         // @todo
     1152        $statement  = __( 'Deleting Topic Tags… %s', 'bbpress' );
     1153        $sql_delete = "DELETE a,b,c FROM `{$wpdb->terms}` AS a LEFT JOIN `{$wpdb->term_taxonomy}` AS c ON a.term_id = c.term_id LEFT JOIN `{$wpdb->term_relationships}` AS b ON b.term_taxonomy_id = c.term_taxonomy_id WHERE c.taxonomy = 'topic-tag';";
     1154        $result     = is_wp_error( $wpdb->query( $sql_delete ) ) ? $failed : $success;
     1155        $messages[] = sprintf( $statement, $result );
    11531156
    11541157        /** User Meta *********************************************************/
Note: See TracChangeset for help on using the changeset viewer.