Skip to content

Commit

Permalink
Merge branch 'trunk' into 691-show-errors-with-severity-less-than-a-n…
Browse files Browse the repository at this point in the history
…umber-as-a-warning
  • Loading branch information
davidperezgar authored Oct 12, 2024
2 parents 3984d64 + fdd8002 commit 8b72701
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 8b72701

Please sign in to comment.