Skip combining translation files without comment.reference (#40623)

* Skip invalid translation format

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Moon 2023-10-06 13:33:37 -07:00 committed by GitHub
parent 783cf6bdcf
commit e7711f1a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Skip combining translation files without comment.reference

View File

@ -81,6 +81,10 @@ class Translations {
continue;
}
if ( ! isset( $chunk_data['comment']['reference'] ) ) {
continue;
}
$reference_file = $chunk_data['comment']['reference'];
// Only combine "app" files (not scripts registered with WP).