204 Commits

Author SHA1 Message Date
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
9e70acbace Bump version to 1.5.0 and prepare relaase 2020-05-13 18:41:34 +02:00
d3eda0fc47 remove keyword description from referer blacklist settings section
This mode is not actually available, so is must not be documented.
Plus minor rewording of copy&paste mistakes.
2020-05-13 18:34:14 +02:00
a3741d939e README++
* minor corrections
* update Statify versions
* add FAQ section for IP subnets
* CHANGELOG++
2020-05-13 18:23:12 +02:00
aa9980106e update phpcs ignore statements; PHPdoc indentation 2020-05-10 12:13:39 +02:00
31c04d6b92 sanitize referer URI 2020-05-10 12:00:41 +02:00
d343dda6ff update settings page screenshot 2020-05-10 11:46:25 +02:00
4a6cc49fce fix use of $options variable in settings view
Underscore prefix has been removed from this field, but the change
did not reach the settings page yet.
2020-05-10 11:37:17 +02:00
ac73b2316d typo fixes 2020-05-10 11:35:18 +02:00
7f0523a647 declare compatibility with WP 5.4
skip ci
2020-04-09 10:51:44 +02:00
736cec1d12 fix use of esc_html__() for translated escape in settings page 2020-01-07 19:30:41 +01:00
253d2fadd2 use only supported PHP versions + 5.6 for CI builds 2020-01-07 19:30:40 +01:00
ebc44c722e use long array syntax
For some reason short syntax is discouraged in the latest WPCS ruleset.
To stay in line with WPCS we use long syntax now.
2020-01-07 19:30:38 +01:00
4c9d96e5a0 Merge branch 'master' into develop 2020-01-07 19:30:14 +01:00
c84eae50dd declare compatibility with WP 5.3
[skip ci]
2019-11-13 17:12:23 +01:00
3f5990f1f3 update PHPCS ruleset and re-enable warnings 2019-10-06 18:07:42 +02:00
84cf79fd04 remove underscore prefix from options field 2019-10-06 17:52:08 +02:00
a88a89c442 update WP Codex and license links [skip ci] 2019-10-06 17:34:32 +02:00
82667dcf93 update Composer dependencies 2019-08-18 18:48:46 +02:00
0b07697db8 check if POST values are actually set before sanitization 2019-08-18 18:21:57 +02:00
353ca4792f Declare compatibility with WordPress 5.2 [skip ci] 2019-05-30 15:34:18 +02:00
22373d2308 CONTRIBUTING++ [skip ci]
Adapt branch names to git flow and add a sentence on pull requests.
2019-03-17 17:43:29 +01:00
44ee7ee839 Check regular expressions and prevent saving invalid settings (#13) 2019-03-17 17:34:57 +01:00