Skip to content

Commit 40fb5e6

Browse files
authored
Merge pull request #113 from pluginkollektiv/develop
release 1.4.3
2 parents 2cef3f2 + 33055bf commit 40fb5e6

13 files changed

+1015
-5206
lines changed

.github/workflows/test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
on: push
3+
jobs:
4+
unit:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php: [ '7.3', '7.4', '8.0' ]
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: ${{matrix.php}}
16+
tools: composer
17+
- name: Install
18+
run: composer install --no-interaction
19+
- name: Unit tests
20+
run: composer test
21+
- name: Coverage Report
22+
if: matrix.php == '8.0'
23+
uses: codecov/codecov-action@v1
24+
quality:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: '8.0'
33+
tools: composer
34+
- name: Setup Node
35+
uses: actions/setup-node@v2
36+
with:
37+
node-version: '14'
38+
- name: Install
39+
run: |
40+
composer install --no-interaction
41+
npm ci
42+
- name: Code style checks for PHP, JS and CSS
43+
run: composer lint-all

.github/workflows/wordpress-plugin-asset-update.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ jobs:
88
name: Push to stable
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: php-actions/composer@v5
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: '8.0'
17+
tools: composer
18+
- name: Build
19+
run: composer install
1320
- name: WordPress.org plugin asset/readme update
1421
uses: 10up/action-wordpress-plugin-asset-update@stable
1522
env:

.github/workflows/wordpress-plugin-deploy.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,24 @@ name: Deploy to WordPress.org
22
on:
33
push:
44
tags:
5-
- "*"
6-
- "!*-*"
5+
- "*"
6+
- "!*-*"
77
jobs:
88
tag:
99
name: New tag
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: php-actions/composer@v5
14-
- name: WordPress Plugin Deploy
15-
uses: 10up/action-wordpress-plugin-deploy@stable
16-
env:
17-
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
18-
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup PHP
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: '8.0'
18+
tools: composer
19+
- name: Build
20+
run: composer install
21+
- name: WordPress Plugin Deploy
22+
uses: 10up/action-wordpress-plugin-deploy@stable
23+
env:
24+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
25+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

.travis.yml

-35
This file was deleted.

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
### 1.4.3 ###
4+
* Point Safe Browsing link on settings page to site-specific URL (#106)
5+
* Increase the size of the Safe Browsing API input to show the entire key (#109)
6+
* Show warning if Safe Browsing check is enabled without custom API key (#105)
7+
38
### 1.4.2 ###
49
* Drop recursive check on option that failed in several scenarios (#96) (#97)
510
* Drop check for base64 encoded strings which did not work properly in al cases (#100)

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* Requires at least: 4.1
66
* Requires PHP: 5.2
77
* Tested up to: 5.7
8-
* Stable tag: 1.4.2
8+
* Stable tag: 1.4.3
99
* License: GPLv2 or later
10-
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
10+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
1111

1212
Security plugin to protect your blog or website against exploits and spam injections.
1313

@@ -41,6 +41,11 @@ A complete documentation is available on the [AntiVirus website](https://antivir
4141

4242
## Changelog ##
4343

44+
### 1.4.3 ###
45+
* Point Safe Browsing link on settings page to site-specific URL (#106)
46+
* Increase the size of the Safe Browsing API input to show the entire key (#109)
47+
* Show warning if Safe Browsing check is enabled without custom API key (#105)
48+
4449
### 1.4.2 ###
4550
* Drop recursive check on option that failed in several scenarios (#96, #97)
4651
* Drop check for base64 encoded strings which did not work properly in al cases (#100)
@@ -81,6 +86,10 @@ For the complete changelog, check out our [GitHub repository](https://github.com
8186

8287
## Upgrade Notice ##
8388

89+
### 1.4.3 ###
90+
Please note that we will discontinue providing a built-in API key for the Google Safe Browsing feature.
91+
If you have enabled this check, please provide your own API key before the next update.
92+
8493
### 1.4.2 ###
8594
This is a bugfix release removing two checks of the theme scan causing false positives.
8695

antivirus.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
* Text Domain: antivirus
99
* License: GPLv2 or later
1010
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
11-
* Version: 1.4.2
11+
* Version: 1.4.3
1212
*
1313
* @package AntiVirus
1414
*/
1515

1616
/*
1717
Copyright (C) 2009-2015 Sergej Müller
18+
Copyright (C) 2016-2021 pluginkollektiv
1819
1920
This program is free software; you can redistribute it and/or modify
2021
it under the terms of the GNU General Public License as published by

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"matthiasmullie/minify": "^1.3",
1515
"phpcompatibility/phpcompatibility-wp": "^2.1",
1616
"phpunit/phpunit": "^9",
17-
"squizlabs/php_codesniffer": "^3.5",
17+
"squizlabs/php_codesniffer": "^3.6",
1818
"wp-coding-standards/wpcs": "^2.3"
1919
},
2020
"scripts": {

composer.lock

+30-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/class-antivirus-safebrowsing.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function check_safe_browsing() {
4444
array(
4545
'client' => array(
4646
'clientId' => 'wpantivirus',
47-
'clientVersion' => '1.4.2',
47+
'clientVersion' => '1.4.3',
4848
),
4949
'threatInfo' => array(
5050
'threatTypes' => array(

0 commit comments

Comments
 (0)