Skip to content

Commit

Permalink
fixed issue reported by ludovic
Browse files Browse the repository at this point in the history
  • Loading branch information
bainternet committed Nov 15, 2015
1 parent 2011909 commit 78dde1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Simple_Custom_Product_Tabs.php
Expand Up @@ -134,7 +134,7 @@ function show_c_p_tab_field($field){
<select id="custom_product_tabs" style="width: 50%;" name="<?php echo $field['id'];?>[]" class="ajax_chosen_select_tabs" multiple="multiple" data-placeholder="<?php _e( 'Search for a custom tab&hellip;', 'GWP' ); ?>">
<?php
$tabs_ids = get_option($field['id']);
$_ids = ! empty( $tabs_ids ) ? array_map( 'absint', $tabs_ids ) : null;
$_ids = ! empty( $tabs_ids ) ? array_map( 'absint', $tabs_ids ) : array();
foreach ( $this->get_custom_tabs_list() as $id => $label ) {
$selected = in_array($id, $_ids)? 'selected="selected"' : '';
echo '<option value="' . esc_attr( $id ) . '"'.$selected.'>' . esc_html( $label ) . '</option>';
Expand Down

0 comments on commit 78dde1a

Please sign in to comment.