Skip to content

Commit 4c88210

Browse files
committed
Fixes
1 parent c176fd6 commit 4c88210

4 files changed

Lines changed: 27 additions & 10 deletions

File tree

.gitattributes

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
11
# Keep repository text files normalized to LF across platforms.
22
* text=auto eol=lf
3+
4+
# Exclude source-only and development tooling from git archive/export packages.
5+
/.github/** export-ignore
6+
/.vscode/** export-ignore
7+
/.gitattributes export-ignore
8+
/.gitignore export-ignore
9+
/composer.json export-ignore
10+
/composer.lock export-ignore
11+
/CHANGELOG.md export-ignore
12+
/GEMINI.md export-ignore
13+
/phpcs.xml export-ignore
14+
/phpmd.xml export-ignore
15+
/phpstan.neon export-ignore
16+
/psalm.xml export-ignore
17+
/README.md export-ignore
18+
/renovate.json export-ignore
19+
/SECURITY.md export-ignore
20+
/stubs/** export-ignore
21+
/tests/** export-ignore
22+
/vendor/** export-ignore

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ jobs:
5050
cp -r js enginescript-site-exporter/
5151
cp -r languages enginescript-site-exporter/
5252
cp readme.txt enginescript-site-exporter/
53-
cp README.md enginescript-site-exporter/
54-
cp CHANGELOG.md enginescript-site-exporter/
5553
cp LICENSE enginescript-site-exporter/ || echo "No LICENSE file found"
5654
zip -r enginescript-site-exporter-${{ steps.get_version.outputs.version }}.zip enginescript-site-exporter
5755

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- **WordPress Test Compatibility**: Pinned the generated WordPress compatibility test job to PHPUnit 9.6 with Yoast PHPUnit Polyfills 4.x because the WordPress test library still calls PHPUnit APIs removed in PHPUnit 10+.
3131
- **WordPress Compatibility Coverage**: Added PHP syntax linting, PHPUnit dependency verification, hook registration checks, constant checks, security helper tests, and a PHP 8.2/latest WordPress lowest-dependency matrix run.
3232
- **Release Packaging**: Fixed release and CI package builds to include required `includes/`, `css/`, `js/`, `languages/`, and `readme.txt` files.
33+
- **Release Package Hygiene**: Excluded Composer files, CI metadata, tests, static-analysis stubs/configs, and source-only docs from generated plugin release packages.
3334
- **Archive Failure Reporting**: File archive creation now returns a `WP_Error` when a file cannot be added instead of logging the failure and reporting success.
3435

3536
### Architecture

js/admin.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
* Since: 2.0.0
88
*/
99

10-
( function () {
11-
'use strict';
10+
( () => {
11+
document.addEventListener( 'DOMContentLoaded', () => {
12+
const deleteButtons = document.querySelectorAll( '.sse-confirm-delete' );
1213

13-
document.addEventListener( 'DOMContentLoaded', function () {
14-
var deleteButtons = document.querySelectorAll( '.sse-confirm-delete' );
15-
16-
deleteButtons.forEach( function ( button ) { // eslint-disable-line lodash/prefer-lodash-collection-iteration
17-
button.addEventListener( 'click', function ( event ) {
14+
deleteButtons.forEach( ( button ) => { // eslint-disable-line lodash/prefer-lodash-collection-iteration
15+
button.addEventListener( 'click', ( event ) => {
1816
/* global sseAdmin */
19-
var message = ( typeof sseAdmin !== 'undefined' && sseAdmin.confirmDelete )
17+
const message = ( typeof sseAdmin !== 'undefined' && sseAdmin.confirmDelete )
2018
? sseAdmin.confirmDelete
2119
: 'Are you sure you want to delete this export file?';
2220

0 commit comments

Comments
 (0)