13 Commits

Author SHA1 Message Date
ac73b2316d typo fixes 2020-05-10 11:35:18 +02:00
736cec1d12 fix use of esc_html__() for translated escape in settings page 2020-01-07 19:30:41 +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
3f5990f1f3 update PHPCS ruleset and re-enable warnings 2019-10-06 18:07:42 +02:00
0b07697db8 check if POST values are actually set before sanitization 2019-08-18 18:21:57 +02:00
44ee7ee839 Check regular expressions and prevent saving invalid settings (#13) 2019-03-17 17:34:57 +01:00
b7c3b51873 implement keyword filter for referer blacklist (closes #15)
In addition to the pre-existing normal and regular expression filters a
keyword mode is added. This filter matches if the referer string
contains a given keyword (case insensitive).
2019-03-12 19:37:48 +01:00
b691f2c618 adjust sanitization of settings and warning messages 2019-03-06 17:23:06 +01:00
c511dcb517 rework settings page
The settings page now features the 2 column layout like generated by  WP
settings API. The regular expression selects are slightly rewritten in
preparation of additional mathing methods.
2019-03-06 15:06:47 +01:00
35b6d5592b Cleaned up labels and added PHPCS rule for settings view 2018-10-27 19:05:09 +02:00
9e3dc8fb86 Parameter sanitization on config update reworked
Verify that checkbox value is actually present in POST value and fallback to 0.
2018-01-07 16:15:46 +01:00
089ed347fa Code style again
Altered variable names from camel to snake case, renamed class files from *.class.php to class-*.php, added some comments.
2017-07-16 12:34:49 +02:00
4890dbaeeb Corrections for WP Coding Standard
All PHP classes have been reworked to match the WP coding standard. This includes mostly code styling, but also the use of wp_ functions instead of PHP builtins.
2017-07-15 15:58:43 +02:00