diff --git a/includes/admin/tools.php b/includes/admin/tools.php index 21b4cf569f5..37d9d1cd2a9 100755 --- a/includes/admin/tools.php +++ b/includes/admin/tools.php @@ -1377,7 +1377,18 @@ function edd_tools_sysinfo_get() { continue; $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[$plugin_path]->update->new_version . ')' : ''; - $return .= $plugin['Name'] . ': ' . $plugin['Version'] . $update . "\n"; + $plugin_url = ''; + if ( ! empty( $plugin['PluginURI'] ) ) { + $plugin_url = $plugin['PluginURI']; + } elseif ( ! empty( $plugin['AuthorURI'] ) ) { + $plugin_url = $plugin['AuthorURI']; + } elseif ( ! empty( $plugin['Author'] ) ) { + $plugin_url = $plugin['Author']; + } + if ( $plugin_url ) { + $plugin_url = ' — ' . $plugin_url; + } + $return .= $plugin['Name'] . ': ' . $plugin['Version'] . $update . $plugin_url . "\n"; } $return = apply_filters( 'edd_sysinfo_after_wordpress_plugins', $return ); @@ -1390,7 +1401,18 @@ function edd_tools_sysinfo_get() { continue; $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[$plugin_path]->update->new_version . ')' : ''; - $return .= $plugin['Name'] . ': ' . $plugin['Version'] . $update . "\n"; + $plugin_url = ''; + if ( ! empty( $plugin['PluginURI'] ) ) { + $plugin_url = $plugin['PluginURI']; + } elseif ( ! empty( $plugin['AuthorURI'] ) ) { + $plugin_url = $plugin['AuthorURI']; + } elseif ( ! empty( $plugin['Author'] ) ) { + $plugin_url = $plugin['Author']; + } + if ( $plugin_url ) { + $plugin_url = ' — ' . $plugin_url; + } + $return .= $plugin['Name'] . ': ' . $plugin['Version'] . $update . $plugin_url . "\n"; } $return = apply_filters( 'edd_sysinfo_after_wordpress_plugins_inactive', $return ); @@ -1410,7 +1432,18 @@ function edd_tools_sysinfo_get() { $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[$plugin_path]->update->new_version . ')' : ''; $plugin = get_plugin_data( $plugin_path ); - $return .= $plugin['Name'] . ': ' . $plugin['Version'] . $update . "\n"; + $plugin_url = ''; + if ( ! empty( $plugin['PluginURI'] ) ) { + $plugin_url = $plugin['PluginURI']; + } elseif ( ! empty( $plugin['AuthorURI'] ) ) { + $plugin_url = $plugin['AuthorURI']; + } elseif ( ! empty( $plugin['Author'] ) ) { + $plugin_url = $plugin['Author']; + } + if ( $plugin_url ) { + $plugin_url = ' — ' . $plugin_url; + } + $return .= $plugin['Name'] . ': ' . $plugin['Version'] . $update . $plugin_url . "\n"; } $return = apply_filters( 'edd_sysinfo_after_wordpress_ms_plugins', $return );