Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
strategy:
fail-fast: false
matrix:
blueprint: ["woocommerce-10.9.4.json", "woocommerce-11.0.1.json"]
blueprint: ["woocommerce-10.9.4.json", "woocommerce-11.0.1.json", "woocommerce-11.1.2.json"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
Expand Down
2 changes: 1 addition & 1 deletion languages/zipquantum-smart-links.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the GPL-2.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: ZipQuantum – Smart Links & QR Codes 1.0.0\n"
"Project-Id-Version: ZipQuantum – Smart Links & QR Codes 1.0.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/zipquantum-smart-links\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: smart links, deep links, qr code, woocommerce, marketing
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -108,6 +108,11 @@ The plugin sends only the site and content information needed for the selected Z

== Changelog ==

= 1.0.1 =

* Make synchronization queue status labels fully translatable.
* Verify compatibility with WordPress 7.1 and WooCommerce 11.1.

= 1.0.0 =

* Initial WordPress.org release.
12 changes: 12 additions & 0 deletions tests/SmokeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ public function test_main_plugin_file_has_frozen_identity(): void {
$this->assertStringContainsString( 'License: GPL-2.0-or-later', $contents );
}

public function test_release_versions_are_aligned(): void {
$root = dirname( __DIR__ );
$plugin = file_get_contents( $root . '/zipquantum-smart-links.php' );
$readme = file_get_contents( $root . '/readme.txt' );
$pot = file_get_contents( $root . '/languages/zipquantum-smart-links.pot' );

$this->assertMatchesRegularExpression( '/^ \* Version: 1\.0\.1$/m', $plugin );
$this->assertStringContainsString( "ZIPQUANTUM_SMART_LINKS_VERSION', '1.0.1'", $plugin );
$this->assertMatchesRegularExpression( '/^Stable tag: 1\.0\.1$/m', $readme );
$this->assertStringContainsString( 'ZipQuantum – Smart Links & QR Codes 1.0.1', $pot );
}

public function test_readme_discloses_external_service_and_no_tracking(): void {

$contents = file_get_contents( dirname( __DIR__ ) . '/readme.txt' );
Expand Down
24 changes: 24 additions & 0 deletions tests/blueprints/woocommerce-11.1.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"login": true,
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://downloads.wordpress.org/plugin/woocommerce.11.1.2.zip"
},
"options": {
"activate": true
}
},
{
"step": "activatePlugin",
"pluginPath": "/wordpress/wp-content/plugins/zipquantum-smart-links/zipquantum-smart-links.php"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; require_once ABSPATH . 'wp-admin/includes/plugin.php'; if (!class_exists('WooCommerce') || !class_exists('ZIPQUANTUM_WooCommerce')) { throw new Exception('WooCommerce integration was not loaded'); } if (!post_type_exists('product') || !taxonomy_exists('product_cat') || !function_exists('wc_get_coupon_id_by_code')) { throw new Exception('Required WooCommerce object APIs are unavailable'); } if (!is_plugin_active('zipquantum-smart-links/zipquantum-smart-links.php')) { throw new Exception('ZipQuantum plugin is not active'); } echo 'ZIPQUANTUM_WOOCOMMERCE_OK WooCommerce=' . WC_VERSION;"
}
]
}
4 changes: 2 additions & 2 deletions zipquantum-smart-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: ZipQuantum – Smart Links & QR Codes
* Plugin URI: https://zq.tn/
* Description: Turn WordPress and WooCommerce content into ZipQuantum Smart Links and QR codes.
* Version: 1.0.0
* Version: 1.0.1
* Requires at least: 6.9
* Requires PHP: 7.4
* Author: Xaere
Expand All @@ -18,7 +18,7 @@

defined( 'ABSPATH' ) || exit;

define( 'ZIPQUANTUM_SMART_LINKS_VERSION', '1.0.0' );
define( 'ZIPQUANTUM_SMART_LINKS_VERSION', '1.0.1' );
define( 'ZIPQUANTUM_SMART_LINKS_FILE', __FILE__ );
define( 'ZIPQUANTUM_SMART_LINKS_DIR', plugin_dir_path( __FILE__ ) );
define( 'ZIPQUANTUM_SMART_LINKS_URL', plugin_dir_url( __FILE__ ) );
Expand Down
Loading