Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/01/2011 01:33:09 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Adjustments to login and register forms to improve behavior and functionality.
Various documentation fixes.
Rename _bbp_topic_status meta to _bbp_status, and add migration routine to updater.
Sanity checks on $wp_query in bbp_pre_get_posts.

Fixes #1476, #1493. Props GautamGupta for original diff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-update.php

    r2955 r2970  
    122122        }
    123123    }
     124
     125    // Rename topic postmeta keys from _bbp_topic_status to _bbp_status
     126    if ( 108 > (int) $db_version ) {
     127
     128        // Rename topic postmeta keys from _bbp_topic_status to _bbp_status
     129        $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->postmeta} SET meta_key = '_bbp_status' WHERE meta_key = '_bbp_topic_status'" ) );
     130
     131        // Set the new DB version
     132        update_option( '_bbp_db_version', '108' );
     133    }
    124134}
    125135add_action( 'init', 'bbp_update', 1 );
Note: See TracChangeset for help on using the changeset viewer.