Plugin Directory

Changeset 627891


Ignore:
Timestamp:
11/20/2012 09:07:09 PM (13 years ago)
Author:
PeterHudec
Message:

Corrected version 1.1

Location:
image-metadata-cruncher
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • image-metadata-cruncher/tags/1.1/image-metadata-cruncher.php

    r627884 r627891  
    784784    public function section_0() {
    785785        $options = get_option( $this->prefix );
    786         if ( intval( $options['version'] ) < 1.1 ) {
     786       
     787        if ( intval( $options['version'] ) < 1.1 ) {
     788            // if the plugin has been updated to version 1.1 enable highlighting by default
    787789            $options['enable_highlighting'] = 'enable';
     790            $options['version'] = 1.1;
     791            update_option( $this->prefix, $options );
    788792        }
    789793        ?>
  • image-metadata-cruncher/trunk/image-metadata-cruncher.php

    r627884 r627891  
    784784    public function section_0() {
    785785        $options = get_option( $this->prefix );
    786         if ( intval( $options['version'] ) < 1.1 ) {
     786       
     787        if ( intval( $options['version'] ) < 1.1 ) {
     788            // if the plugin has been updated to version 1.1 enable highlighting by default
    787789            $options['enable_highlighting'] = 'enable';
     790            $options['version'] = 1.1;
     791            update_option( $this->prefix, $options );
    788792        }
    789793        ?>
Note: See TracChangeset for help on using the changeset viewer.