WordPress.org

Plugin Directory

Changeset 417013


Ignore:
Timestamp:
07/29/11 19:42:15 (3 years ago)
Author:
dimadin
Message:

Hopefully last round of upgrade notice fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gravatar-signup-encouragement/trunk/gravatar-signup-encouragment.php

    r416988 r417013  
    142142 
    143143    /* If no options, or version <2.0, upgrade */ 
    144     if ( ! $gse_options || ! $gse_options['version'] ) { 
     144    if ( ! $gse_options || ! $gse_options['version'] || $gse_options['version'] == '2.0' ) { 
    145145        gravatar_signup_encouragement_upgrade(); 
    146146    } 
     
    266266            update_option( 'gravatar_signup_encouragement_settings', $gse_options ); 
    267267        /* Update from 2.0+ */ 
    268         } elseif ( version_compare( $gse_options['version'], '3.0', '<' ) ) { 
     268        } elseif ( $gse_options['version'] == '2.0' ) { 
    269269            /* Add new version and notice about upgrade */ 
    270270            $gse_options['version'] = '3.0'; 
Note: See TracChangeset for help on using the changeset viewer.