Skip to content

Commit ee65f9e

Browse files
authored
Merge pull request #9 from happyprime/feature/wp-6.2-prep
Prep WP 6.2 compatibility release
2 parents 7aff1a4 + 01bf5eb commit ee65f9e

13 files changed

Lines changed: 4124 additions & 2299 deletions

File tree

.distignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
.github
1+
.git/
2+
.github/
23
.gitignore
34
.distignore
4-
node_modules
5+
node_modules/
6+
vendor/
7+
composer.json
8+
composer.lock
59
package.json
610
package-lock.json
11+
phpcs.xml
712
README.md

.github/workflows/issues.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Add new issues to Happy Prime project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
name: Add issue to project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/add-to-project@main
14+
with:
15+
project-url: https://github.com/orgs/happyprime/projects/5
16+
github-token: ${{ secrets.AMIABOT_BOT_TOKEN }}

.github/workflows/phpcs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PHP_CodeSniffer
2+
3+
on: pull_request
4+
5+
jobs:
6+
phpcs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.0'
16+
coverage: none
17+
tools: composer, cs2pr
18+
19+
- name: Cache Composer
20+
id: cache-composer
21+
run: |
22+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
23+
- uses: actions/cache@v3
24+
with:
25+
path: ${{ steps.cache-composer.outputs.dir }}
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-composer-
29+
30+
- name: Install dependencies
31+
run: |
32+
composer config github-oauth.github.com ${{ secrets.AMIABOT_BOT_TOKEN }}
33+
composer install --prefer-dist --no-progress
34+
35+
- name: Detect coding standard violations
36+
run: vendor/bin/phpcs -q --report=checkstyle . | cs2pr --notices-as-warnings

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules/
2+
vendor/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Turn Comments Off plugin for WordPress
22

3-
Copyright 2022 by Happy Prime and contributors
3+
Copyright 2022-2023, Happy Prime and contributors
44

55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ If you find something we missed, [please let us know](https://github.com/happypr
2020

2121
## Changelog
2222

23+
### 1.2.1
24+
25+
* No functional changes, only custodial.
26+
* Confirm WordPress 6.2 support.
27+
* Update `wordpress/scripts` dependency to 26.1.0.
28+
* Improve linting configuration.
29+
2330
### 1.2.0
2431

2532
* Update the list of blocks unregistered to include latest from Gutenberg and WordPress.

composer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "happyprime/turn-comments-off",
3+
"description": "Turn comments off everywhere in WordPress",
4+
"version": "1.2.1",
5+
"type": "wordpress-plugin",
6+
"license": "GPLv2+",
7+
"config": {
8+
"allow-plugins": {
9+
"dealerdirect/phpcodesniffer-composer-installer": true,
10+
"composer/installers": true
11+
}
12+
},
13+
"require-dev": {
14+
"dealerdirect/phpcodesniffer-composer-installer": "*",
15+
"phpcompatibility/php-compatibility": "*",
16+
"phpcompatibility/phpcompatibility-wp": "*",
17+
"sirbrillig/phpcs-variable-analysis": "*",
18+
"wp-cli/dist-archive-command": "^2.0",
19+
"wp-coding-standards/wpcs": "dev-develop"
20+
},
21+
"scripts": {
22+
"phpcs": "vendor/bin/phpcs",
23+
"lint": "vendor/bin/phpcs",
24+
"phpcbf": "vendor/bin/phpcbf",
25+
"fix": "vendor/bin/phpcbf"
26+
}
27+
}

0 commit comments

Comments
 (0)