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:
parent
783cf6bdcf
commit
e7711f1a50
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Skip combining translation files without comment.reference
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue