Skip to content

Commit

Permalink
Merge pull request #4021 from impress-org/issue/3975
Browse files Browse the repository at this point in the history
fix: correctly display license status in system info #3975
  • Loading branch information
Devin Walker committed Feb 26, 2019
2 parents bf79687 + db79ee7 commit 933d00f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/misc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,10 @@ function give_get_plugins() {
$dirname = strtolower( dirname( $plugin_path ) );

// Is the plugin a Give add-on?
if ( strstr( $dirname, 'give-' ) && strstr( $plugin_data['AuthorURI'], 'wordimpress.com' ) ) {
if (
false !== strpos( $dirname, 'give-' )
&& in_array( $plugin_data['Author'], array( 'WordImpress', 'GiveWP' ) )
) {
// Plugin is a Give-addon.
$plugins[ $plugin_path ]['Type'] = 'add-on';

Expand Down

0 comments on commit 933d00f

Please sign in to comment.