Plugin Directory

Changeset 1834636


Ignore:
Timestamp:
03/06/2018 03:54:07 PM (8 years ago)
Author:
Affilinet
Message:

Update ads.txt on each version change.

.. and master the wp-hook-jungle

Location:
affilinet-performance-module
Files:
74 added
4 edited
3 copied

Legend:

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

    r1834591 r1834636  
    44Plugin Name: affilinet Performance Ads
    55Description: Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
    6 Version: 1.9.2
     6Version: 1.9.3
    77Author: affilinet
    88Author URI: https://www.affili.net/de/publisher/tools/performance-ads
  • affilinet-performance-module/tags/1.9.3/readme.txt

    r1834591 r1834636  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 1.9.2
     6Stable tag: 1.9.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080== Changelog ==
    8181
     82= 1.9.3 =
     83* Release Date: March 6, 2018
     84* Fix: Update ads.txt on Plugin version change
    8285
    8386= 1.9.2 =
  • affilinet-performance-module/tags/1.9.3/uninstall.php

    r1834591 r1834636  
    2323delete_option( 'affilinet_ywcap' );
    2424delete_option( 'affilinet_ywcolor' );
     25delete_option( 'affilinet-performance-ads-version' );
    2526
    2627
  • affilinet-performance-module/trunk/affilinet.php

    r1834582 r1834636  
    44Plugin Name: affilinet Performance Ads
    55Description: Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
    6 Version: 1.9.2
     6Version: 1.9.3
    77Author: affilinet
    88Author URI: https://www.affili.net/de/publisher/tools/performance-ads
  • affilinet-performance-module/trunk/classes/Plugin.php

    r1834582 r1834636  
    66    public function __construct()
    77    {
    8         register_activation_hook( AFFILINET_PLUGIN_FILE, array( $this,  'plugin_upgraded'));
     8
    99
    1010        add_action('admin_init', array($this, 'admin_init'));
     
    2222        add_filter( 'plugin_action_links_' .plugin_basename(AFFILINET_PLUGIN_FILE ), array( $this, 'plugin_add_settings_link' ) );
    2323
     24
     25        // check for ads.txt
     26
     27        // manual update
    2428        add_action( 'upgrader_process_complete', array($this, 'plugin_upgraded'));
     29        // manual activation
     30
     31        register_activation_hook( AFFILINET_PLUGIN_FILE, array( $this, 'plugin_upgraded' ) );
     32
     33        // check for version changes
     34        $pluginVersion = get_file_data( AFFILINET_PLUGIN_DIR . 'affilinet.php', array( 'Version' => 'Version' ), 'plugin' )['Version'];
     35        if ( get_option( 'affilinet-performance-ads-version', false ) !== $pluginVersion ) {
     36            $this->plugin_upgraded();
     37            update_option( 'affilinet-performance-ads-version', $pluginVersion );
     38        }
    2539    }
    2640
  • affilinet-performance-module/trunk/readme.txt

    r1834582 r1834636  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 1.9.2
     6Stable tag: 1.9.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080== Changelog ==
    8181
     82= 1.9.3 =
     83* Release Date: March 6, 2018
     84* Fix: Update ads.txt on Plugin version change
    8285
    8386= 1.9.2 =
  • affilinet-performance-module/trunk/uninstall.php

    r1529662 r1834636  
    2323delete_option( 'affilinet_ywcap' );
    2424delete_option( 'affilinet_ywcolor' );
     25delete_option( 'affilinet-performance-ads-version' );
    2526
    2627
Note: See TracChangeset for help on using the changeset viewer.