Plugin Directory

Changeset 714431


Ignore:
Timestamp:
05/17/2013 02:53:16 PM (13 years ago)
Author:
tcbarrett
Message:

Fixed version check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-glossary/trunk/class/wpg.class.php

    r714426 r714431  
    110110    public function wpg_vesion_check(){
    111111        $plugin = get_plugin_data( dirname(dirname(__FILE__)) . '/wp-glossary.php' );
    112         if( $plugin && is_object($plugin) && $plugin->Version ):
    113             $in_file_version = $plugin->Version;
     112        if( $plugin && is_array($plugin) && $plugin['Version'] ):
     113            $in_file_version = $plugin['Version'];
    114114            $optionkey       = 'wpg_vesion_check';
    115115            $in_db_version   = get_option( $optionkey, 0 );
Note: See TracChangeset for help on using the changeset viewer.