Skip to content

Commit 1fe5aa8

Browse files
committed
Update plugin metadata and enhance testing command
- Added requirements for PHP 8.0 and WordPress 4.0 in README and plugin file. - Updated license information in the plugin file. - Modified testing command in package.json for better process management.
1 parent 53aeb5a commit 1fe5aa8

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ You could then ask "Why it's not already into core?". This is [make WordPress co
1111

1212
## Requirements
1313

14-
- No requirements
14+
- PHP 8.0+
15+
- WordPress 4.0
1516

1617
## Installation
1718

bea-sanitize-filename.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
Version: 2.0.9
55
Plugin URI: https://github.com/BeAPI/bea-sanitize-filename
66
Description: Remove all punctuation and accents from the filename of uploaded files.
7+
Requires at least: 4.0
8+
Requires PHP: 8.0
79
Author: Be API
810
Author URI: https://beapi.fr
9-
Domain Path: languages
11+
License: GPLv3 or later
12+
License URI: https://github.com/BeAPI/bea-sanitize-filename/blob/master/LICENSE.md
1013
Text Domain: bea-sanitize-filename
1114
Contributors: Amaury Balmer, Maxime Culea
1215

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"pretest:unit:report": "wp-env start",
1212
"test:unit": "wp-env run cli --env-cwd=wp-content/plugins/bea-sanitize-filename ./vendor/bin/phpunit",
1313
"test:unit:report": "wp-env run cli --env-cwd=wp-content/plugins/bea-sanitize-filename ./vendor/bin/phpunit --testdox",
14-
"test:unit:once": "npm run wp-env:start && npm run test:unit && npm run wp-env:stop",
14+
"test:unit:once": "sh -c 'trap \"npm run wp-env:stop\" EXIT; npm run wp-env:start && npm run test:unit'",
1515
"test:setup": "npm install && composer install"
1616
},
1717
"devDependencies": {

0 commit comments

Comments
 (0)