From d8eecd8abc8bded91b7f61b375985c18055bdcca Mon Sep 17 00:00:00 2001 From: Dan Phiffer Date: Thu, 3 Oct 2024 11:08:04 -0400 Subject: [PATCH] version 0.0.9 --- README.md | 5 +++++ composer.json | 2 +- composer.lock | 6 +++--- languages/split-tests.pot | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 5 +++++ split-tests.php | 2 +- 8 files changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9f71ae4..b14f05b 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ This section describes how to install the plugin and get it working. ## Filters ## +- `split_tests_is_headless` - return true from a filter handler if you are using this plugin on headless WordPress (redirects get handled differently). - `split_tests_endpoint_url` - where JavaScript events should be sent (default is `/wp-admin/admin-ajax.php?action=split_tests`). - `split_tests_current_url` - used to target on which pages tests will run (default is `$_REQUEST['REQUEST_URI']`). - `split_tests_is_single` - whether a single post is being loaded (default is the result of `is_single()` only for the `post` post type). @@ -81,6 +82,10 @@ Yes, the tests will work fine with HTML generated behind a CDN, or using other k ## Changelog ## +### 0.0.9 ### +- Adds a `split_tests_is_headless` filter that changes how redirects are handled. +- Bugfix: don't apply unpublished tests to the site. + ### 0.0.8 ### - Bugfix: allow for zero title tests. diff --git a/composer.json b/composer.json index 027dcf4..6e39bbb 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "the-markup/split-tests", "description": "Simple A/B testing for WordPress", - "version": "0.0.8", + "version": "0.0.9", "type": "wordpress-plugin", "repositories": [ { diff --git a/composer.lock b/composer.lock index e7e3ba1..709c509 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "63fbb55b2df8e531b331b21fe933d16d", + "content-hash": "51ed27cf4fd4bcc78a224f7a4b3f81ce", "packages": [ { "name": "composer/installers", @@ -154,10 +154,10 @@ }, { "name": "wpengine/advanced-custom-fields-pro", - "version": "6.3.6", + "version": "6.3.7", "dist": { "type": "zip", - "url": "https://connect.advancedcustomfields.com/v2/plugins/composer_download?p=pro&t=6.3.6" + "url": "https://connect.advancedcustomfields.com/v2/plugins/composer_download?p=pro&t=6.3.7" }, "require": { "composer/installers": "~1.0 || ~2.0" diff --git a/languages/split-tests.pot b/languages/split-tests.pot index 4e2a151..c37ef05 100644 --- a/languages/split-tests.pot +++ b/languages/split-tests.pot @@ -2,9 +2,9 @@ # This file is distributed under the same license as the Split Tests package. msgid "" msgstr "" -"Project-Id-Version: Split Tests 0.0.8\n" +"Project-Id-Version: Split Tests 0.0.9\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/split-tests\n" -"POT-Creation-Date: 2024-10-01 17:47:32+00:00\n" +"POT-Creation-Date: 2024-10-03 15:06:33+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/package-lock.json b/package-lock.json index a94e207..09565ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "split-tests", - "version": "0.0.8", + "version": "0.0.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "split-tests", - "version": "0.0.8", + "version": "0.0.9", "devDependencies": { "@wordpress/scripts": "^30.0.2", "grunt": "~1.6.1", diff --git a/package.json b/package.json index 3e1fb9b..f9d213d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "split-tests", - "version": "0.0.8", + "version": "0.0.9", "main": "Gruntfile.js", "author": "The Markup ", "scripts": { diff --git a/readme.txt b/readme.txt index 6518ee4..e1c57f0 100644 --- a/readme.txt +++ b/readme.txt @@ -29,6 +29,7 @@ This section describes how to install the plugin and get it working. == Filters == +- `split_tests_is_headless` - return true from a filter handler if you are using this plugin on headless WordPress (redirects get handled differently). - `split_tests_endpoint_url` - where JavaScript events should be sent (default is `/wp-admin/admin-ajax.php?action=split_tests`). - `split_tests_current_url` - used to target on which pages tests will run (default is `$_REQUEST['REQUEST_URI']`). - `split_tests_is_single` - whether a single post is being loaded (default is the result of `is_single()` only for the `post` post type). @@ -85,6 +86,10 @@ Yes, the tests will work fine with HTML generated behind a CDN, or using other k == Changelog == += 0.0.9 = +- Adds a `split_tests_is_headless` filter that changes how redirects are handled. +- Bugfix: don't apply unpublished tests to the site. + = 0.0.8 = - Bugfix: allow for zero title tests. diff --git a/split-tests.php b/split-tests.php index a26e87b..3723f5f 100644 --- a/split-tests.php +++ b/split-tests.php @@ -7,7 +7,7 @@ * Author URI: https://themarkup.org/ * Text Domain: split-tests * Domain Path: /languages - * Version: 0.0.8 + * Version: 0.0.9 * * @package SplitTests */