Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/lang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ jobs:
- name: Install Composer Dependencies
if: steps.composer-lang-cache.outputs.cache-hit != 'true'
run: composer install; composer require --dev wp-cli/wp-cli-bundle
- run: ./vendor/bin/wp i18n make-pot wp-content/themes/humanity-theme wp-content/themes/humanity-theme/languages/amnesty.pot --domain=amnesty --exclude=private
- run: ./vendor/bin/wp i18n update-po wp-content/themes/humanity-theme/languages/amnesty.pot
- run: ./vendor/bin/wp i18n make-mo wp-content/themes/humanity-theme/languages
- run: ./vendor/bin/wp i18n make-json wp-content/themes/humanity-theme/languages --no-purge
- run: ./vendor/bin/wp i18n make-php wp-content/themes/humanity-theme/languages
- run: composer lang
- uses: actions/upload-artifact@v4
with:
name: humanity-theme
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
### v3.0.5
Performance:
- Many caching improvements across blocks and helper functions
- Add new fast cross-blog helper functions

Build:
- Upgrade dependencies

### v3.0.4
Fixes:
- Taxonomy filters on RSS feed

CI:
- Update language file compilation scripts

### v3.0.3
Fixes:
- Remove old WooCommerce references
Expand Down
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"license": "none",
"minimum-stability": "stable",
"require-dev": {
"bigbite/phpcs-config": "v2.0.0"
"bigbite/phpcs-config": "v2.0.0",
"phpcompatibility/php-compatibility": "^10.0.0@dev",
"phpcompatibility/phpcompatibility-paragonie": "^2.0@dev",
"phpcompatibility/phpcompatibility-wp": "^3.0@dev"
},
"config": {
"allow-plugins": {
Expand All @@ -13,17 +16,19 @@
},
"scripts": {
"lint": "./vendor/bin/phpcs wp-content/themes/humanity-theme",
"lang": ["@makePot", "@updatePoMo"],
"makePot": "wp i18n make-pot wp-content/themes/humanity-theme wp-content/themes/humanity-theme/languages/amnesty.pot --domain=amnesty --exclude=private",
"updatePoMo": [
"wp i18n update-po wp-content/themes/humanity-theme/languages/amnesty.pot",
"wp i18n make-mo wp-content/themes/humanity-theme/languages",
"wp i18n make-json wp-content/themes/humanity-theme/languages --no-purge",
"wp i18n make-json wp-content/themes/humanity-theme/languages",
"wp i18n make-php wp-content/themes/humanity-theme/languages"
]
},
"scripts-descriptions": {
"lint": "Runs PHP coding standard checks",
"lang": "Runs makePot and updatePoMo",
"makePot": "Re-generates the POT language file",
"UpdatePoMo": "Updates PO, MO, JSON, and PHP translation files"
"updatePoMo": "Updates PO, MO, JSON, and PHP translation files"
}
}
248 changes: 240 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions phpcs-testVersion-override.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<ruleset>
<config name="testVersion" value="8.2-"/>
</ruleset>
4 changes: 4 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
<config name="minimum_supported_wp_version" value="5.8" />
<exclude-pattern>*.l10n.php$</exclude-pattern>
<rule ref="./vendor/bigbite/phpcs-config/BigBite" />
<rule ref="PHPCompatibility" />
<rule ref="PHPCompatibilityWP" />
<!-- Needs to be a separate ruleset due to https://github.com/squizlabs/PHP_CodeSniffer/issues/2197 -->
<rule ref="phpcs-testVersion-override.xml"/>
</ruleset>
4 changes: 2 additions & 2 deletions private/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/core": "^7.29.6",
"@babel/eslint-parser": "^7.28.6",
"@babel/plugin-proposal-pipeline-operator": "^7.28.6",
"@babel/plugin-transform-class-properties": "^7.28.6",
Expand All @@ -46,7 +46,7 @@
"file-loader": "^6.2.0",
"mini-css-extract-plugin": "^2.10.0",
"node-normalize-scss": "^8.1.2",
"postcss": "^8.5.6",
"postcss": "^8.5.23",
"postcss-banner": "^4.0.1",
"postcss-loader": "^8.2.1",
"postcss-pxtorem": "^6.1.0",
Expand Down
Loading
Loading