Skip to:
Content

bbPress.org

Changeset 6183


Ignore:
Timestamp:
12/27/2016 06:54:16 PM (7 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.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bbpress.php

    r6118 r6183  
    204204        /** Versions **********************************************************/
    205205
    206         $this->version    = '2.6-alpha-6091';
    207         $this->db_version = '250';
     206        $this->version    = '2.6-alpha-6183';
     207        $this->db_version = '260';
    208208
    209209        /** Paths *************************************************************/
  • trunk/src/includes/admin/tools.php

    r6182 r6183  
    22552255        }
    22562256
    2257         // Delete the old meta data
     2257        // Delete user meta if everything was copied successfully
    22582258        if ( $changed === $to_change ) {
    22592259            delete_metadata_by_mid( 'user', $meta_id );
     
    23112311        }
    23122312
    2313         // Delete the old meta data
     2313        // Delete user meta if everything was copied successfully
    23142314        if ( $changed === $to_change ) {
    23152315            delete_metadata_by_mid( 'user', $meta_id );
  • 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.