Plugin Directory

Changeset 1834651


Ignore:
Timestamp:
03/06/2018 04:23:36 PM (8 years ago)
Author:
Affilinet
Message:

Update ads.txt on each version change.

Location:
affilinet-performance-module
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • affilinet-performance-module/tags/1.9.3/classes/Plugin.php

    r1834647 r1834651  
    3232
    3333        // check for version changes
    34         $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' )['Version'];
    35         if ( get_option( 'affilinet-performance-ads-version', false ) !== $pluginVersion ) {
     34        $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' );
     35        if ( get_option( 'affilinet-performance-ads-version', false ) !== $pluginVersion['Version'] ) {
    3636            $this->plugin_upgraded();
    37             update_option( 'affilinet-performance-ads-version', $pluginVersion );
     37            update_option( 'affilinet-performance-ads-version', $pluginVersion['Version'] );
    3838        }
    3939
  • affilinet-performance-module/trunk/classes/Plugin.php

    r1834647 r1834651  
    3333        // check for version changes
    3434
    35         $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' )['Version'];
    36         if ( get_option( 'affilinet-performance-ads-version', false ) !== $pluginVersion ) {
     35        // check for version changes
     36        $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' );
     37        if ( get_option( 'affilinet-performance-ads-version', false ) !== $pluginVersion['Version'] ) {
    3738            $this->plugin_upgraded();
    38             update_option( 'affilinet-performance-ads-version', $pluginVersion );
     39            update_option( 'affilinet-performance-ads-version', $pluginVersion['Version'] );
    3940        }
    4041
Note: See TracChangeset for help on using the changeset viewer.