Skip to content

Commit

Permalink
Merge branch 'release/v1.2.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharvold committed May 16, 2022
2 parents 73c25fa + 6e19ece commit f987448
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

All notable changes to this project will be documented in this file.

## [1.2.16] - 2022-05-16

### Bug Fixes

- :bug: fixed local development

### Styling

- :lipstick: added square brand icon

### Build

- :construction_worker: bumped version
- :construction_worker: disabled sslverify in dev env for layout call
- Bookmark: merge to master
- :construction_worker: bumped version numbers
- :construction_worker: changed git cliff tag name to fit the actual tag
- Bookmark: merge to master
- :construction_worker: bumped version number everywhere
- Bookmark: merge to master
- :construction_worker: bumped correct version number in ikotravel.php
- Bookmark: merge to master
- Bookmark: merge to master
- Bookmark: merge to master
- :construction_worker: bumped version number correctly

## [1.2.15] - 2022-05-16

### Bug Fixes
Expand Down
7 changes: 5 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: MB-Jan, ikotravel
Tags: travel, iko, booking
Requires at least: 4.7
Tested up to: 6.0
Stable tag: 1.2.15
Version: 1.2.15
Stable tag: 1.2.16
Version: 1.2.16
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -49,6 +49,9 @@ If you notice any issues, please contact us.

== Changelog ==

= 1.2.16 =
* Disabled sslverify in development environment.

= 1.2.15 =
* Build related.

Expand Down
2 changes: 1 addition & 1 deletion ikoTravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: iko.travel Affiliate
* Description: This plugin integrates your iko.travel affiliate account with WordPress. It integrates with Gutenberg, Elementor, Avada, WPBakery and as shortcodes.
* Version: 1.2.15
* Version: 1.2.16
* Author: iko.travel
* Author URI: https://iko.travel/
* License: GPL-3.0
Expand Down
6 changes: 5 additions & 1 deletion includes/elements/ikocontent.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function getIkoBearerToken()
'redirection' => 10,
'httpversion' => '1.0',
'blocking' => true,
'sslverify' => false,
'sslverify' => true,
);
if ($this->environmentVal == 'development') {
error_log('iko.travel - Development environment. Ignoring self-signed certificates');
Expand Down Expand Up @@ -207,6 +207,10 @@ function getIkoLayouts($bearerToken) {
'Authorization' => 'Bearer '.$bearerToken
)
);
if ($this->environmentVal == 'development') {
error_log('iko.travel - Development environment. Ignoring self-signed certificates');
$getArgs['sslverify'] = false;
}
$response = wp_remote_get($url,$getArgs);
if ( is_wp_error( $response ) ) {
// print out any error
Expand Down

0 comments on commit f987448

Please sign in to comment.