176 Commits

Author SHA1 Message Date
3b169b28a7
update settings version to 1.7 2023-09-17 15:19:10 +02:00
7fd7be6c19
ci: update actions/checkout to v4 2023-09-17 15:03:58 +02:00
633da4086d
unique IP filter list 2023-09-17 14:58:33 +02:00
da6cde00cf
migrate settings to WP settings API 2023-09-17 14:58:25 +02:00
ae232eceb5
prepare release 1.6.3 v1.6.3 2023-08-14 18:53:20 +02:00
93b4dd744d
remove useless parenthesis around DOING_AUTOSAVE check 2023-08-14 18:47:55 +02:00
268e3933c8
declare compatibility with WordPress 6.3 2023-08-14 18:42:51 +02:00
5d7a75ed31
allow compoesr/installers v2 dependency 2023-04-01 15:15:03 +02:00
aaf054fb5b
minor code style tweaks 2023-04-01 15:14:40 +02:00
17c27a7b7c
add .editorconfig 2023-04-01 14:26:48 +02:00
7757142237
declare compatibility with WordPress 6.2 2023-03-27 20:46:49 +02:00
40347b0f50
ci: analyze pull requests 2023-02-25 14:34:18 +01:00
2ea3d66677
prepare release 1.6.2 v1.6.2 2023-02-25 14:29:41 +01:00
7ae0ffcb94
ci: add PHP 8.2 to test matrix 2023-02-25 14:18:55 +01:00
a533a494fa
remove deprecated FILTER_SANITIZE_STRING usage 2023-02-25 14:17:24 +01:00
7ffc8074b4
restrict PHPUnit to v5-v9
PHPUnit 10 fails with old configuration schema while older releases only
print a warning.

Stick with at most v9 for now, as we are testing against older PHP
versions that to not support the new scheme.
2023-02-25 14:16:57 +01:00
8267e408f0
simply regex quantifiers and parse IPs to lowercase
Use ? instead of {0,1} and {3} instead of {3,3} where applicable.
Number groups [ß-9] are left as is for readability, i.e. prefer
[1-9][0-9] over [1-9]\d.

The whole expression is evaluated case-insensitive now, so we can omit
the "a-fA-F" and simply use "a-f".

Unit-tests extended accordingly.
2022-11-04 10:42:36 +01:00
10cc310e48
declare compatibility with WordPress 6.1 2022-11-04 10:09:10 +01:00
91fff8a32c
declare compatibility with WordPress 6.0 2022-05-28 09:48:58 +02:00
7104188718
ci: update dev-dependencies and actions 2022-05-14 18:35:48 +02:00
e0a6b498af
ci: add PHP 8.1 to test roster 2022-01-26 17:56:11 +01:00
e449fe02b0
declare compatibility with WordPress 5.9 2022-01-26 17:53:06 +01:00
24c32327aa declare compatibility with WordPress 5.8 2021-08-01 16:13:58 +02:00
2bf0bcb0fd bump stable tag to 1.6.1 v1.6.1 2021-05-28 11:55:21 +02:00
eb49dbc7db fix output for user agent filter on settings page 2021-05-28 11:49:31 +02:00
be173c6428 prepare release 1.6.1 2021-05-28 11:43:37 +02:00
BananaSquishee
6ffa650254
fix storage of user agent filter list (#28)
The user agent filer list is not flipped with the actual values as keys
like the lists for referrer and target. Hence the numeric keys are
compared against the actual user agent. We now flip the values in the
upgrade hook.
2021-05-28 11:11:30 +02:00
6fdaa8bd5a split unit test into separate test classes 2021-05-25 12:35:57 +02:00
e64122a5c6 skip sonar analysis for pull requests 2021-05-24 19:54:50 +02:00
5981971ddb enable CI for pull requests 2021-05-24 19:18:54 +02:00
eee20e4d05 remove RoboFile
The build process is trivial and does not require an additional task
runner and deployments are done by the GH action, so we can remove the
Robo dependency and clean up the build environment.
2021-05-22 19:30:04 +02:00
0a3102ee38 use GitHub actions for CI and automate Sonarcloud analysis 2021-05-17 20:47:21 +02:00
5f3fd8b554 minor dev-dependency updates 2021-05-16 10:11:12 +02:00
2f4428c0e4 use "stable" branch instead of "master" 2021-05-16 10:11:12 +02:00
e794758d77 declare compatibility with WordPress 5.7 2021-03-14 11:16:40 +01:00
91b612425b introduce GitHub actions for automated plugin/asset deployment 2021-03-14 11:16:17 +01:00
a5e4225261 prepare release of v1.6.0 v1.6.0 2020-12-09 12:44:14 +01:00
1a621b8274 add PHP 8.0 to CI roster 2020-12-09 12:13:51 +01:00
f424909515 reduce redundancies for recurring matching loops
Referer, target and user agent filter share most of their logic
for different matching methods. We introduce a common routine for
all of them to not repeat ourselves. Passing a value extractor by
reference allows lazy evaluation (filter might be disabled) and
overrides for different cases (i.e. domain extractor for exact match).
2020-10-26 19:23:32 +01:00
a6cc821089 implement user agent filter
A new live-only filter block for user agent strings is now available.
It features the known exact, keyword and regular expression modes.
2020-10-26 19:23:32 +01:00
e5c30c2183 rename test class files to comply with PHPUnit 8.5+ conventions 2020-10-19 16:19:23 +02:00
2f8939b363 ui: correct label association for target matching method 2020-10-19 12:01:23 +02:00
06a7b1677a rename plugin to "Statify Filter"
The plugins purpose is to exclude or filter certain requests from
tracking by Statify. However the current name "Statify Blacklist" is not
actually inline with today's understanding of such terms. In WordPress
Core 5.5 the word "blacklist" among others has been replaced by more
precise wording where possible.

The term "filter" has been used in various places already and clearly
describes the behavior of this plugin. So we rename the plugin to
"Statify Filter" and rephrase front-end texts.

Plugin slug (permalink), textdomain and all public class and constant
names left untouched for now, to not introduce breaking changes at this
point. To be cleaned up with next major release.
2020-10-19 10:34:09 +02:00
af2d2c5142 docs: update Travis CI badge 2020-09-09 08:58:08 +02:00
c30f07e02f prepare release of 1.5.2 and declare WP 5.5 compatibility v1.5.2 2020-09-03 20:49:01 +02:00
cb61210685 minor (dev-)dependency updates 2020-09-03 20:49:01 +02:00
e4fd34d036 do not rely on WP core translation and add textdomain for all texts 2020-09-03 20:49:01 +02:00
2dd8e60bd8 prepare release 1.5.1 v1.5.1 2020-05-20 10:33:05 +02:00
902e211552
postpone jump out on AJAX calls for Statify 1.7 compatibility (#22)
Statify 1.7 changed the JS tacking endpoint to WP AJAX, so we must not
skip the complete initialization on AJAX calls anymore. The routine now
breaks after adding the filter (if necessary).
2020-05-20 10:26:57 +02:00
9caa7b0678 Merge branch 'release/1.5.0' v1.5.0 2020-05-13 19:08:14 +02:00