Skip to content

Commit 7da0328

Browse files
authored
Merge pull request #14 from happyprime/fix/update-config
Prep 1.3.0 release
2 parents 32418ac + fd8d19c commit 7da0328

11 files changed

Lines changed: 10781 additions & 6467 deletions

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ composer.lock
1010
package.json
1111
package-lock.json
1212
phpcs.xml
13+
phpstan.neon.dist
1314
README.md

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ Activate this plugin to immediately remove all comment functionality from WordPr
1313
* Remove "Recent Comments" from the site activity dashboard widget.
1414
* Remove the comments feed link.
1515
* Unregister all core comment blocks in the editor.
16+
* Remove "Manage Comments" from My Sites on multisite. (If network activated.)
1617

1718
No configuration necessary (or available).
1819

1920
If you find something we missed, [please let us know](https://github.com/happyprime/turn-comments-off)!
2021

2122
## Changelog
2223

24+
### 1.3.0
25+
26+
* Remove "Manage Comments" from site menus under My Sites on multisite.
27+
* Confirm WordPress 6.4 support.
28+
* Update `wordpress/scripts` dependency to 26.15.0.
29+
* Improve linting configuration.
30+
2331
### 1.2.1
2432

2533
* No functional changes, only custodial.

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-blocks', 'wp-dom-ready'), 'version' => '105d3c0577a1f1b9d0cf');
1+
<?php return array('dependencies' => array('wp-blocks', 'wp-dom-ready'), 'version' => '13623f35a22fbab135b9');

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
{
22
"name": "happyprime/turn-comments-off",
33
"description": "Turn comments off everywhere in WordPress",
4-
"version": "1.2.1",
4+
"version": "1.3.0",
55
"type": "wordpress-plugin",
66
"license": "GPLv2+",
77
"config": {
88
"allow-plugins": {
99
"dealerdirect/phpcodesniffer-composer-installer": true,
10-
"composer/installers": true
10+
"composer/installers": true,
11+
"phpstan/extension-installer": true
12+
},
13+
"platform": {
14+
"php": "7.4"
1115
}
1216
},
1317
"require-dev": {
18+
"wp-coding-standards/wpcs": "*",
1419
"dealerdirect/phpcodesniffer-composer-installer": "*",
15-
"phpcompatibility/php-compatibility": "*",
20+
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99",
1621
"phpcompatibility/phpcompatibility-wp": "*",
1722
"sirbrillig/phpcs-variable-analysis": "*",
18-
"wp-cli/dist-archive-command": "^2.0",
19-
"wp-coding-standards/wpcs": "dev-develop"
23+
"phpstan/phpstan": "^1.10",
24+
"szepeviktor/phpstan-wordpress": "^1.3",
25+
"phpstan/extension-installer": "^1.3",
26+
"phpstan/phpstan-phpunit": "^1.3",
27+
"php-stubs/wordpress-tests-stubs": "^6.2"
2028
},
2129
"scripts": {
2230
"phpcs": "vendor/bin/phpcs",
23-
"lint": "vendor/bin/phpcs",
2431
"phpcbf": "vendor/bin/phpcbf",
25-
"fix": "vendor/bin/phpcbf"
32+
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2048M"
2633
}
2734
}

0 commit comments

Comments
 (0)