Skip to content

Commit

Permalink
Merge pull request #716 from WordPress/fix/apache
Browse files Browse the repository at this point in the history
Don't flag Apache license
  • Loading branch information
swissspidy authored Oct 12, 2024
2 parents b5b33ec + 49492b3 commit fdd8002
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private function check_license( Check_Result $result, string $readme_file, Parse
}

// Checks for a valid license in Plugin Header.
if ( ! empty( $plugin_license ) && ! preg_match( '/GPL|GNU|MIT|FreeBSD|New BSD|BSD-3-Clause|BSD 3 Clause|OpenLDAP|Expat/im', $plugin_license ) ) {
if ( ! empty( $plugin_license ) && ! preg_match( '/GPL|GNU|MIT|FreeBSD|New BSD|BSD-3-Clause|BSD 3 Clause|OpenLDAP|Expat|Apache/im', $plugin_license ) ) {
$this->add_result_error_for_file(
$result,
__( '<strong>Your plugin has an invalid license declared in Plugin Header.</strong><br>Please update your readme with a valid GPL license identifier. It is necessary to declare the license of this plugin. You can do this by using the fields available both in the plugin readme and in the plugin headers.', 'plugin-check' ),
Expand Down

0 comments on commit fdd8002

Please sign in to comment.