Skip to content

Commit

Permalink
Added source type.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpsmith committed May 24, 2012
1 parent db3f9f3 commit a801473
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tgm-plugin-activation/class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,11 @@ protected function _gather_plugin_data() {
if ( isset( $table_data[$i]['plugin'] ) && (array) $table_data[$i]['plugin'] )
$plugin['name'] = $table_data[$i]['plugin'];

if ( isset( $plugin['external_url'] ) ) {
if ( isset( $plugin['source_type'] ) ) {
/** The plugin is linked to an external source */
$table_data[$i]['source'] = $plugin['source_type'];
}
elseif ( isset( $plugin['external_url'] ) ) {
/** The plugin is linked to an external source */
$table_data[$i]['source'] = __( 'External Link', TGM_Plugin_Activation::$instance->domain );
}
Expand Down

0 comments on commit a801473

Please sign in to comment.