Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/27/2016 06:54:16 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Core: Upgrade routine for favorites & subscriptions in 2.6.0.

  • Use the new upgrade tools
  • Bump the DB version to 260
  • Improve inline docs in upgrade tool functions

See #2959.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/update.php

    r5951 r6183  
    282282        /** 2.2 Branch ********************************************************/
    283283
    284         // 2.2
     284        // 2.2.x
    285285        if ( $raw_db_version < 220 ) {
    286286
     
    294294        /** 2.3 Branch ********************************************************/
    295295
    296         // 2.3
     296        // 2.3.x
    297297        if ( $raw_db_version < 230 ) {
    298298            // No changes
     299        }
     300
     301        /** 2.4 Branch ********************************************************/
     302
     303        // 2.4.x
     304        if ( $raw_db_version < 240 ) {
     305            // No changes
     306        }
     307
     308        /** 2.5 Branch ********************************************************/
     309
     310        // 2.5.x
     311        if ( $raw_db_version < 250 ) {
     312            // No changes
     313        }
     314
     315        /** 2.6 Branch ********************************************************/
     316
     317        // 2.6.x
     318        if ( $raw_db_version < 260 ) {
     319
     320            /**
     321             * Upgrade user favorites and subscriptions
     322             *
     323             * @link https://bbpress.trac.wordpress.org/ticket/2959
     324             */
     325            bbp_admin_upgrade_user_favorites();
     326            bbp_admin_upgrade_user_subscriptions();
    299327        }
    300328    }
Note: See TracChangeset for help on using the changeset viewer.