Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
v2.6.7
= FIXED - Multiple file upload not working
  • Loading branch information
Rodgath authored Jan 14, 2019
1 parent abb170a commit b58c102
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dilaz-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: http://webdilaz.com/plugins/dilaz-panel/
* Description: Simple options panel for WordPress themes and plugins.
* Author: WebDilaz Team
* Version: 2.6.6
* Version: 2.6.7
* Author URI: http://webdilaz.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Expand All @@ -15,7 +15,7 @@
||
|| @package Dilaz Panel
|| @subpackage Panel
|| @version 2.6.6
|| @version 2.6.7
|| @since Dilaz Panel 1.0
|| @author WebDilaz Team, http://webdilaz.com
|| @copyright Copyright (C) 2017, WebDilaz LTD
Expand Down
6 changes: 3 additions & 3 deletions includes/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static function fieldQueryselect($field) {
$select2_width = isset($args['select2width']) ? sanitize_text_field($args['select2width']) : '100px';
$select2 = isset($args['select2']) ? sanitize_html_class($args['select2']) : '';
$multiple_attr = $select2 == 'select2multiple' ? 'multiple="multiple"' : '';
$multiple_bool = $select2 == 'select2multiple' ? 'TRUE' : 'FALSE';
$multiple_bool = $select2 == 'select2multiple' ? 'true' : 'false';

// if (wp_script_is('select2script', 'enqueued')) {
// wp_localize_script('select2script', 'dilaz_panel_post_select_lang', array(
Expand Down Expand Up @@ -885,10 +885,10 @@ public static function fieldUpload($field) {

$output = '';

$data_file_multiple = (isset($args['multiple']) && $args['multiple'] == TRUE) ? 'data-file-multiple="TRUE"' : '';
$data_file_multiple = (isset($args['multiple']) && $args['multiple'] == TRUE) ? 'data-file-multiple="true"' : '';
$file_type = (isset($args['file_type']) && $args['file_type'] != '') ? strtolower($args['file_type']) : 'image';
$data_file_type = $file_type != '' ? 'data-file-type="'. $file_type .'"' : 'data-file-type="image"';
$data_file_specific = (isset($args['file_specific']) && $args['file_specific'] == TRUE) ? 'data-file-specific="TRUE"' : '';
$data_file_specific = (isset($args['file_specific']) && $args['file_specific'] == TRUE) ? 'data-file-specific="true"' : '';
$frame_title = (isset($args['frame_title']) && $args['frame_title'] != '') ? sanitize_text_field($args['frame_title']) : '';
$frame_button_text = (isset($args['frame_button_text']) && $args['frame_button_text'] != '') ? sanitize_text_field($args['frame_button_text']) : '';

Expand Down

0 comments on commit b58c102

Please sign in to comment.