Skip to:
Content

bbPress.org

Changeset 5473


Ignore:
Timestamp:
09/08/2014 08:12:09 PM (9 years ago)
Author:
johnjamesjacoby
Message:

In bbp_admin_repair_forum_topic_count() include hidden topics in repair tool. Props thebrandonallen. Fixes #2680.

File:
1 edited

Legend:

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

    r5466 r5473  
    601601    $result    = __( 'Failed!', 'bbpress' );
    602602
    603     $sql_delete = "DELETE FROM {$wpdb->postmeta} WHERE meta_key IN ( '_bbp_topic_count', '_bbp_total_topic_count' );";
     603    $sql_delete = "DELETE FROM {$wpdb->postmeta} WHERE meta_key IN ( '_bbp_topic_count', '_bbp_total_topic_count', '_bbp_topic_count_hidden' );";
    604604    if ( is_wp_error( $wpdb->query( $sql_delete ) ) ) {
    605605        return array( 1, sprintf( $statement, $result ) );
     
    610610        foreach ( $forums as $forum ) {
    611611            bbp_update_forum_topic_count( $forum->ID );
     612            bbp_update_forum_topic_count_hidden( $forum->ID );
    612613        }
    613614    } else {
Note: See TracChangeset for help on using the changeset viewer.