Skip to content
Open
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
46 changes: 46 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ updates:
- "maintenance"
# Limit the number of open PRs
open-pull-requests-limit: 10
# Propose a new release only after it has been out for 7 days, so a compromised
# release is usually found and pulled first. Security updates are not delayed.
cooldown:
default-days: 7
# Create a group of updates for all actions
groups:
# Security fixes arrive in a pull request of their own, apart from the weekly
# version updates. Needs Dependabot security updates on in the repository settings.
security-updates:
applies-to: "security-updates"
patterns:
- "*"
actions:
patterns:
- "*"
Expand All @@ -40,8 +50,18 @@ updates:
- "maintenance"
# Limit the number of open PRs
open-pull-requests-limit: 10
# Propose a new release only after it has been out for 7 days, so a compromised
# release is usually found and pulled first. Security updates are not delayed.
cooldown:
default-days: 7
# Group updates by dependency type
groups:
# Security fixes arrive in a pull request of their own, apart from the weekly
# version updates. Needs Dependabot security updates on in the repository settings.
security-updates:
applies-to: "security-updates"
patterns:
- "*"
# Group all dev dependencies together
dev-dependencies:
dependency-type: "development"
Expand All @@ -68,8 +88,18 @@ updates:
- "maintenance"
# Limit the number of open PRs
open-pull-requests-limit: 10
# Propose a new release only after it has been out for 7 days, so a compromised
# release is usually found and pulled first. Security updates are not delayed.
cooldown:
default-days: 7
# Group all of the development tooling together
groups:
# Security fixes arrive in a pull request of their own, apart from the weekly
# version updates. Needs Dependabot security updates on in the repository settings.
security-updates:
applies-to: "security-updates"
patterns:
- "*"
dev-dependencies:
dependency-type: "development"
# Allow updates to all dependency types
Expand All @@ -88,6 +118,12 @@ updates:
- dependency-name: "eslint-plugin-unicorn"
update-types:
- "version-update:semver-major"
# @wordpress/stylelint-config accepts Stylelint 17 at most. With Stylelint 18, "npm ls"
# reports an invalid tree and the lint job fails. Remove this entry when a release of
# the WordPress config supports Stylelint 18.
- dependency-name: "stylelint"
update-types:
- "version-update:semver-major"

# Updates for the Python linters that the lint job installs
- package-ecosystem: "pip"
Expand All @@ -104,8 +140,18 @@ updates:
- "maintenance"
# Limit the number of open PRs
open-pull-requests-limit: 10
# Propose a new release only after it has been out for 7 days, so a compromised
# release is usually found and pulled first. Security updates are not delayed.
cooldown:
default-days: 7
# Group all of the linters together
groups:
# Security fixes arrive in a pull request of their own, apart from the weekly
# version updates. Needs Dependabot security updates on in the repository settings.
security-updates:
applies-to: "security-updates"
patterns:
- "*"
lint-tools:
patterns:
- "*"
2 changes: 1 addition & 1 deletion .github/workflows/wp-compatibility-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ jobs:
id: install_npm_dependencies
run: |
npm ci --no-audit --no-fund
npm ls @wordpress/eslint-plugin eslint markdownlint-cli2 stylelint stylelint-config-standard
npm ls @wordpress/eslint-plugin @wordpress/stylelint-config eslint markdownlint-cli2 stylelint

- name: Install Python linters
id: install_python_linters
Expand Down
2 changes: 1 addition & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "stylelint-config-standard",
"extends": "@wordpress/stylelint-config",
"plugins": ["stylelint-no-unsupported-browser-features"],
"rules": {
"plugin/no-unsupported-browser-features": [true, { "severity": "error" }]
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ see the current README and Security Policy for supported behavior and guidance.
- **Contributing Guide**: Added `CONTRIBUTING.md`, matching the other EngineScript plugins: setup, checks, test layers, file layout, release files, and the translation template.
- **Rector**: A new Rector job runs `rector process --dry-run` with `rector.php` and fails when PHP 8.3 or Rector's dead-code, code-quality, type-declaration, or early-return rules would change the code. `rector.php` skips the rules that conflict with WordPress, each with its reason; `composer rector` runs the same check, and `composer check-all` includes it.
- **Modern JavaScript and Browser Support**: ESLint also applies `eslint-plugin-unicorn` rules for modern built-ins and patterns, and `eslint-plugin-compat` fails on a browser API that WordPress's supported browsers lack. Stylelint does the same for CSS with `stylelint-no-unsupported-browser-features`. Both read the browser list from `@wordpress/browserslist-config`.
- **Arrays**: PHPCS now requires the short array syntax, the form all EngineScript plugins use.
- **WordPress CSS Standards**: Stylelint checks the stylesheet against WordPress's CSS coding standards (`@wordpress/stylelint-config`) in place of `stylelint-config-standard`. The WordPress config needs Stylelint 17, so Stylelint stays on 17 until the config supports 18. The stylesheet was adjusted to match (`font-weight: 700` in place of `bold`, and a blank line at the start of a media query) and looks the same.- **Arrays**: PHPCS now requires the short array syntax, the form all EngineScript plugins use.
- **Psalm 7**: Static analysis runs on Psalm 7. It found six `(string)` casts of request values that `is_string()` had already checked, which are removed. The included files' direct-access guards carry a Psalm note, because Psalm 7.5 reads them as already decided by the main file's own check; they still stop a direct request. Psalm no longer checks the comments in the WordPress stubs, which Psalm 7 rejects in places. Behavior is unchanged.
- **npm Advisories**: `package.json` overrides `smol-toml`, `katex`, and `re2js` (used by the Markdown linter) with releases that fix their advisories.
- **Workflow Names**: The JavaScript test job is now "JavaScript Tests (Node 24)", the name it has in the other EngineScript plugins. Three issue templates that no workflow used were removed.
Expand Down
3 changes: 2 additions & 1 deletion css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
/* Warning and security notice text. */
.sse-warning-text {
color: #b32d2e;
font-weight: bold;
font-weight: 700;
}

@media (forced-colors: active) {

.sse-warning-text {
color: CanvasText;
forced-color-adjust: auto;
Expand Down
Loading
Loading