Skip to:
Content

bbPress.org

Ticket #2654: 2654-repair-closed-topics.diff

File 2654-repair-closed-topics.diff, 994 bytes (added by netweb, 7 years ago)
  • src/bbpress.php

     
    196196                /** Versions **********************************************************/
    197197
    198198                $this->version    = '2.6-alpha-5235';
    199                 $this->db_version = '250';
     199                $this->db_version = '260';
    200200
    201201                /** Paths *************************************************************/
    202202
  • src/includes/core/update.php

     
    283283                // No changes
    284284        }
    285285
     286        /** 2.6 Branch ************************************************************/
     287
     288        // 2.6
     289        if ( $raw_db_version < 260 ) {
     290
     291                // Repair closed topics
     292                bbp_admin_repair_closed_topics();
     293        }
     294
    286295        /** All done! *************************************************************/
    287296
    288297        // Bump the version