Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
ea9366a9ce | |||
0432861e95 | |||
1243eef2d2 | |||
b4898abd5b | |||
c02263f373 | |||
b34a79068c | |||
00aa79cb1e | |||
96cd17c3e2 | |||
96214d55a0 | |||
fbb8229c3e | |||
a693e0b9c0 | |||
0636367e79 | |||
7537261387 |
@ -1,7 +1,9 @@
|
|||||||
/.git
|
/.git
|
||||||
/.github
|
/.github
|
||||||
/assets
|
/assets
|
||||||
|
/dist
|
||||||
/test
|
/test
|
||||||
|
/vendor
|
||||||
/.distignore
|
/.distignore
|
||||||
/.editorconfig
|
/.editorconfig
|
||||||
/.gitattributes
|
/.gitattributes
|
||||||
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1,5 +1,6 @@
|
|||||||
/.github export-ignore
|
/.github export-ignore
|
||||||
/assets export-ignore
|
/assets export-ignore
|
||||||
|
/dist export-ignore
|
||||||
/test export-ignore
|
/test export-ignore
|
||||||
.distignore export-ignore
|
.distignore export-ignore
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -5,7 +5,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: [ '5.6', '7.4', '8.0', '8.1', '8.2', '8.3' ]
|
php: [ '5.6', '7.4', '8.0', '8.2', '8.4' ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -15,6 +15,7 @@ jobs:
|
|||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
|
coverage: xdebug
|
||||||
tools: composer
|
tools: composer
|
||||||
- name: Install
|
- name: Install
|
||||||
run: composer install --no-interaction
|
run: composer install --no-interaction
|
||||||
@ -23,7 +24,7 @@ jobs:
|
|||||||
composer test
|
composer test
|
||||||
sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml
|
sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml
|
||||||
- name: Analyze with SonarCloud
|
- name: Analyze with SonarCloud
|
||||||
if: matrix.php == '8.2'
|
if: matrix.php == '8.2' && env.SONAR_TOKEN != ''
|
||||||
uses: sonarsource/sonarcloud-github-action@master
|
uses: sonarsource/sonarcloud-github-action@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
23
.github/workflows/wordpress-plugin-check.yml
vendored
Normal file
23
.github/workflows/wordpress-plugin-check.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Plugin check
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ 'stable', 'release/*' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ 'stable' ]
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Package plugin
|
||||||
|
run: |
|
||||||
|
mkdir -p ./dist
|
||||||
|
tail -n +6 README.md > README.md.tmp && mv README.md.tmp README.md
|
||||||
|
rsync -rc --exclude-from=.distignore ./ ./dist/statify-blacklist --delete --delete-excluded
|
||||||
|
|
||||||
|
- name: Check WP plugin
|
||||||
|
uses: wordpress/plugin-check-action@v1
|
||||||
|
with:
|
||||||
|
build-dir: ./dist/statify-blacklist
|
12
README.md
12
README.md
@ -1,23 +1,25 @@
|
|||||||
[](https://github.com/stklcode/statify-blacklist/actions/workflows/test.yml?query=branch%3Astable)
|
[](https://github.com/stklcode/statify-blacklist/actions/workflows/test.yml)
|
||||||
[](https://sonarcloud.io/dashboard?id=stklcode%3Astatify-blacklist)
|
[](https://sonarcloud.io/summary/new_code?id=stklcode%3Astatify-blacklist)
|
||||||
[](https://packagist.org/packages/stklcode/statify-blacklist)
|
[](https://packagist.org/packages/stklcode/statify-blacklist)
|
||||||
[](https://github.com/stklcode/statify-blacklist/blob/stable/LICENSE.md)
|
[](https://github.com/stklcode/statify-blacklist/blob/stable/LICENSE.md)
|
||||||
|
|
||||||
# Statify Filter #
|
# Statify Filter #
|
||||||
* Contributors: stklcode
|
* Contributors: stklcode
|
||||||
* Requires at least: 4.7
|
* Requires at least: 4.7
|
||||||
* Tested up to: 6.5
|
* Tested up to: 6.8
|
||||||
* Requires PHP: 5.5
|
* Requires PHP: 5.5
|
||||||
* Stable tag: 1.7.2
|
* Stable tag: 1.7.2
|
||||||
* License: GPLv2 or later
|
* License: GPLv2 or later
|
||||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
|
Filter extension for the famous Statify WordPress plugin.
|
||||||
|
|
||||||
## Description ##
|
## Description ##
|
||||||
A filter extension for the famous [Statify](https://wordpress.org/plugins/statify/) WordPress plugin.
|
A filter extension for the famous [Statify](https://wordpress.org/plugins/statify/) WordPress plugin.
|
||||||
|
|
||||||
This plugin adds customizable filters to Statify to allow blocking of referer spam or internal interactions.
|
This plugin adds customizable filters to Statify to allow blocking of referer spam or internal interactions.
|
||||||
|
|
||||||
### Features ##
|
### Features ###
|
||||||
|
|
||||||
#### Referer Filter ####
|
#### Referer Filter ####
|
||||||
Add a list of domains (for simplicity only second-level, e.g. _example.com_ which blocks _everything.example.com_).
|
Add a list of domains (for simplicity only second-level, e.g. _example.com_ which blocks _everything.example.com_).
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"step": "installPlugin",
|
"step": "installPlugin",
|
||||||
"pluginZipFile": {
|
"pluginData": {
|
||||||
"resource": "wordpress.org/plugins",
|
"resource": "wordpress.org/plugins",
|
||||||
"slug": "statify"
|
"slug": "statify"
|
||||||
}
|
}
|
||||||
@ -23,14 +23,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"step": "installPlugin",
|
"step": "installPlugin",
|
||||||
"pluginZipFile": {
|
"pluginData": {
|
||||||
"resource": "wordpress.org/plugins",
|
"resource": "wordpress.org/plugins",
|
||||||
"slug": "statify-blacklist"
|
"slug": "statify-blacklist"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"step": "activatePlugin",
|
"step": "activatePlugin",
|
||||||
"pluginPath": "statify-blacklis/statify-blacklist.php"
|
"pluginPath": "statify-blacklist/statify-blacklist.php"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,16 @@
|
|||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5",
|
"php": ">=5.5",
|
||||||
"composer/installers": "~v1.12|~v2.2"
|
"composer/installers": "~v1.12|~v2.3"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0",
|
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0",
|
||||||
"phpunit/phpunit": "^5|^6|^7|^8|^9",
|
"phpunit/phpunit": "^5|^6|^7|^8|^9",
|
||||||
"phpunit/php-code-coverage": "*",
|
"phpunit/php-code-coverage": "*",
|
||||||
"slowprog/composer-copy-file": "~0.3",
|
"slowprog/composer-copy-file": "~0.3",
|
||||||
"squizlabs/php_codesniffer": "^3.9",
|
"squizlabs/php_codesniffer": "^3.12",
|
||||||
"phpcompatibility/phpcompatibility-wp": "^2.1",
|
"phpcompatibility/phpcompatibility-wp": "^2.1",
|
||||||
"wp-coding-standards/wpcs": "^3.0"
|
"wp-coding-standards/wpcs": "^3.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test-all": [
|
"test-all": [
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* @wordpress-plugin
|
* @wordpress-plugin
|
||||||
* Plugin Name: Statify Filter
|
* Plugin Name: Statify Filter
|
||||||
* Plugin URI: https://wordpress.org/plugins/statify-blacklist/
|
* Plugin URI: https://wordpress.org/plugins/statify-blacklist/
|
||||||
* Description: Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist)
|
* Description: Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist")
|
||||||
* Version: 1.7.2
|
* Version: 1.7.2
|
||||||
* Requires at least: 4.7
|
* Requires at least: 4.7
|
||||||
* Requires PHP: 5.5
|
* Requires PHP: 5.5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user