Skip to content

Commit

Permalink
Fix bulk installation error "http://repo"
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed Apr 22, 2015
1 parent 49e90b7 commit c047bcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,8 @@ public function column_plugin( $item ) {
*/
public function column_cb( $item ) {

$value = $item['file_path'] . ',' . esc_url( $item['url'] ) . ',' . $item['sanitized_plugin'];
$plugin_url = ( 'repo' === $item['url'] ) ? $item['url'] : esc_url( $item['url'] );
$value = $item['file_path'] . ',' . $plugin_url . ',' . $item['sanitized_plugin'];
return sprintf( '<input type="checkbox" name="%1$s[]" value="%2$s" id="%3$s" />', esc_attr( $this->_args['singular'] ), esc_attr( $value ), esc_attr( $item['sanitized_plugin'] ) );

}
Expand Down

0 comments on commit c047bcc

Please sign in to comment.