Plugin Directory

Changeset 1834642


Ignore:
Timestamp:
03/06/2018 04:08:50 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

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

    r1834636 r1834642  
    3232
    3333        // check for version changes
    34         $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' )['Version'];
     34
     35        $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' )['Version'];
    3536        if ( get_option( 'affilinet-performance-ads-version', false ) !== $pluginVersion ) {
    3637            $this->plugin_upgraded();
Note: See TracChangeset for help on using the changeset viewer.