WordPress.org

Plugin Directory


Ignore:
Timestamp:
11/16/12 00:53:11 (5 years ago)
Author:
boonebgorges
Message:

Merge 1.2.x into 'svn'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-docs/trunk/includes/upgrade.php

    r625943 r625951  
    1111 
    1212    if ( ! bp_get_option( '_bp_docs_done_upgrade_1_2' ) ) { 
    13         $upgrades[] = '1.2'; 
     13        // If this is a new install, don't bother 
     14        global $wpdb; 
     15        $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = %s", bp_docs_get_post_type_name() ) ); 
     16 
     17        if ( $count ) { 
     18            $upgrades[] = '1.2'; 
     19        } 
    1420    } 
    1521 
Note: See TracChangeset for help on using the changeset viewer.