Plugin Directory

Changeset 1904673


Ignore:
Timestamp:
07/05/2018 05:32:59 PM (8 years ago)
Author:
bseddon
Message:

Update WordPress supported version and changes the user agent on the WordPress remote request to get rates from the ECB because the ECB reject the default user agent string.

Location:
vat-ecsl/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vat-ecsl/trunk/includes/class-integrations.php

    r1310739 r1904673  
    410410        }
    411411
    412         $fetched = wp_remote_get("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml");
     412        global $wp_version;
     413        $fetched = wp_remote_get("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml", array( 'user-agent' => 'WordPress-' . $wp_version . '; ' . home_url() . ';' ) );
    413414        if (is_wp_error($fetched) ||
    414415            empty($fetched['response']) ||
  • vat-ecsl/trunk/readme.txt

    r1761161 r1904673  
    66Requires at least: 3.9.2
    77Tested up to: 4.9
    8 Stable Tag: 1.0.17
     8Stable Tag: 1.0.18
    99License: GNU Version 2 or Any Later Version
    1010
     
    144144Update WordPress supported version
    145145
     146= 1.0.18 =
     147
     148Update WordPress supported version and changes the user agent on the WordPress remote request to get rates from the ECB because the ECB reject the default user agent string.
     149
    146150== Upgrade Notice ==
    147151
  • vat-ecsl/trunk/vat-ecsl.php

    r1511005 r1904673  
    55Plugin URI: http://www.wproute.com/downloads/vat-ecsl/
    66Description: Management and submission of VAT sales with VAT numbers.
    7 Version: 1.0.17
    8 Tested up to: 4.6.1
     7Version: 1.0.18
     8Tested up to: 4.9.6
    99Author: Lyquidity Solutions
    1010Author URI: http://www.wproute.com/
     
    409409
    410410        if ( ! defined( 'VAT_ECSL_VERSION' ) )
    411             define( 'VAT_ECSL_VERSION', '1.0.17' );
     411            define( 'VAT_ECSL_VERSION', '1.0.18' );
    412412
    413413        if ( ! defined( 'VAT_ECSL_WORDPRESS_COMPATIBILITY' ) )
    414             define( 'VAT_ECSL_WORDPRESS_COMPATIBILITY', '4.6.1' );
     414            define( 'VAT_ECSL_WORDPRESS_COMPATIBILITY', '4.9.6' );
    415415
    416416        if ( ! defined( 'VAT_ECSL_STORE_API_URL' ) )
     
    502502        require_once VAT_ECSL_INCLUDES_DIR . 'class-settings.php';
    503503        require_once VAT_ECSL_INCLUDES_DIR . 'class-integrations.php';
    504         require_once VAT_ECSL_INCLUDES_DIR . 'settings.php';
    505504        require_once(VAT_ECSL_INCLUDES_DIR . 'vatidvalidator.php');
    506505        require_once(VAT_ECSL_INCLUDES_DIR . 'class-html-elements.php');
Note: See TracChangeset for help on using the changeset viewer.