Skip to content

Commit 95d1ab7

Browse files
Merge branch 'trunk' into dependabot/composer/slevomat/coding-standard-8.19.1
2 parents 0ed398f + 1c0267e commit 95d1ab7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

includes/Traits/License_Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function is_license_valid_identifier( $license ) {
8383
* @return bool true if the license is GPL compatible, otherwise false.
8484
*/
8585
protected function is_license_gpl_compatible( $license ) {
86-
$match = preg_match( '/GPL|GNU|MIT|FreeBSD|New BSD|BSD-3-Clause|BSD 3 Clause|OpenLDAP|Expat|Apache2|MPL20|ISC/im', $license );
86+
$match = preg_match( '/GPL|GNU|MIT|FreeBSD|New BSD|BSD-3-Clause|BSD 3 Clause|OpenLDAP|Expat|Apache2|MPL20|ISC|CC0/im', $license );
8787

8888
return ( false === $match || 0 === $match ) ? false : true;
8989
}

tests/phpunit/tests/Traits/License_Utils_Tests.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public function data_license_gpl_compatibility() {
112112
array( 'OpenLDAP', true ),
113113
array( 'Expat', true ),
114114
array( 'ISC', true ),
115+
array( 'CC0', true ),
116+
array( 'CC0-1.0', true ),
117+
array( 'CC0 1.0 Universal', true ),
115118

116119
array( 'EPL', false ),
117120
array( 'EUPL', false ),

0 commit comments

Comments
 (0)