Skip to content

Commit

Permalink
Merge pull request #157 from WebDevStudios/release/2.0.1
Browse files Browse the repository at this point in the history
Release :: 2.0.1
  • Loading branch information
bplv112 authored Sep 13, 2022
2 parents 601c815 + bcf8813 commit 2a54a8c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cypress.example.json
phpcs.xml.dist
phpunit.xml
README.md
webpac.config.js
webpack.config.js
.nvmrc
.wordpress-org
.vscode
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cypress.env.json
cypress.json
/tests/cypress/screenshots/*
/tests/cypress/videos/*
.vscode/
5 changes: 5 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ You've connected your WooCommerce store to Constant Contact, promoted your WooCo

== Changelog ==

= 2.0.1 =

* Fix - Fixed an issue with notice not working when ssl is found.
* Fix - Minor typo fixes.

= 2.0.0 =

* Updated - All new ui for the constant contact woocommerce plugin.
Expand Down
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"scripts": {
"test": [ "./vendor/bin/phpunit" ],
"generate-fixtures": [ "@php ./tests/cypress/bin/generate-cypress-fixtures.php" ],
"dist": [
"rm -rf ./vendor",
"rm -rf ./phpcs.xml.dist",
"@composer install --no-dev -a"
],
"install-codestandards": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcs.xml.dist",
"post-install-cmd": [
Expand Down Expand Up @@ -53,6 +48,7 @@
"cypress.*",
"phpunit.xml",
"README.md",
"phpcs.xml.dist",
"tags"
]
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "constant-contact-woocommerce",
"version": "2.0.0",
"version": "2.0.1",
"description": "",
"main": "index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Constant Contact + WooCommerce
* Description: Add products to your emails and sync your contacts.
* Plugin URI: https://github.com/WebDevStudios/constant-contact-woocommerce
* Version: 2.0.0
* Version: 2.0.1
* Author: Constant Contact
* Author URI: https://www.constantcontact.com/
* Text Domain: cc-woo
Expand Down
5 changes: 2 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class Plugin extends ServiceRegistrar {
* @since 1.0.0
* @var string
*/
const PLUGIN_VERSION = '2.0.0';
const PLUGIN_VERSION = '2.0.1';

/**
* Whether the plugin is currently active.
Expand Down Expand Up @@ -107,13 +107,12 @@ public function __construct( string $plugin_file ) {
public function add_ssl_notice() {
$connected = get_option( 'cc_woo_import_connection_established' );

if ( ! $connected && 'on' !== $_SERVER['HTTPS'] ) {
if ( ! $connected && ( isset( $_SERVER['HTTPS'] ) && 'on' !== $_SERVER['HTTPS'] ) ) {
$message = __( 'Your site does not appear to be using a secure connection (SSL). You might face issues when connecting to your account. Please add HTTPS to your site to make sure you have no issues connecting.', 'cc-woo' );
new Notice(
new NoticeMessage( $message, 'error', true )
);
}

}

/**
Expand Down

0 comments on commit 2a54a8c

Please sign in to comment.