Plugin Directory

Changeset 978032


Ignore:
Timestamp:
09/03/2014 05:01:23 PM (12 years ago)
Author:
slukatsky
Message:

Fixed PHP warning and added further tracking

Location:
progrids-widgets/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • progrids-widgets/trunk/classes/ProGrids.php

    r977256 r978032  
    2727        add_filter('the_content', array($this->controller, 'widget'));
    2828
    29         add_filter('pre_update_option_progrids_code', array($this, 'preUpdateCodeFilter'));
    30         add_action('update_option_progrids_code', array($this, 'postUpdateCodeAction'));
     29        add_filter('pre_update_option_progrids_code', array($this, 'preUpdateCodeFilter'), 10, 2);
     30        add_action('update_option_progrids_code', array($this, 'postUpdateCodeAction'), 10, 2);
    3131    }
    3232
     
    6969                'body' => array(
    7070                    'siteurl' => proGrids_site_url(),
    71                     'widgetId' => $widgetId
     71                    'widgetId' => $widgetId,
     72                    'pluginVersion' => proGrids_currentVersion()
    7273                )
    7374            ));
  • progrids-widgets/trunk/classes/ProGridsUpgrade.php

    r977256 r978032  
    1515
    1616        if (version_compare($version, $currVersion, '<')) {
    17             self::upgradeToVersion3();
     17            if (version_compare($version, '3.0.0', '<')) {
     18                // only upgrade to version 3 if less then 3
     19                self::upgradeToVersion3();
     20            }
    1821            ProGrids::savedVersion($currVersion);
     22
     23            wp_remote_post(PROGRIDS_BASE_URL.'/widget/wordpress', array(
     24                'body' => array(
     25                    'siteurl' => proGrids_site_url(),
     26                    'active' => 1,
     27                    'pluginVersion' => $currVersion
     28                )
     29            ));
    1930        }
    2031    }
  • progrids-widgets/trunk/functions.php

    r977256 r978032  
    44 * Plugin Name: ProGrids Widget Plugin
    55 * Description: ProGrids.com widget management plugin
    6  * Version:     3.0.0
     6 * Version:     3.0.1
    77 * Author:      Sazze, Inc.
    88 * Author URI: http://progrids.com/
     
    8080        'body' => array(
    8181            'siteurl' => proGrids_site_url(),
    82             'active' => 0
     82            'active' => 0,
     83            'pluginVersion' => proGrids_currentVersion()
    8384        )
    8485    ));
  • progrids-widgets/trunk/readme.txt

    r977256 r978032  
    44Requires at least: 3.2
    55Tested up to: 4.1.0
    6 Stable tag: 3.0.0
     6Stable tag: 3.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3636
    3737== Changelog ==
     38= 3.0.1 =
     39* Fixed PHP Warning
     40
    3841= 3.0.0 =
    3942* Now user enters installation code, instead of logging in.
Note: See TracChangeset for help on using the changeset viewer.