PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | application/controllers/Wdk_fields.php +3 -3 1.5.6 → 1.5.9 View file →
@@ -5,9 +5,9 @@
5 5
6 6 public function __construct(){
7 7
8 8 if ( ! current_user_can('administrator') ) {
9 - wp_die( __('You do not have sufficient permissions to access this page.') );
9 + wp_die( esc_html__('You do not have sufficient permissions to access this page.','wpdirectorykit') );
10 10 }
11 11
12 12 parent::__construct();
13 13 }
@@ -214,14 +214,14 @@
214 214 foreach( $this->data['fields_tree'] as $key_section => $section)
215 215 {
216 216 if(empty($key_section)) continue;
217 217
218 - $values[] = array('order_index' => $order_index, 'idfield' => $key_section);
218 + $values[] = array('order_index' => $order_index, 'idfield' => (int) $key_section);
219 219 $order_index++;
220 220 if(is_array($section))
221 221 foreach($section as $key_field => $field)
222 222 {
223 - $values[] = array('order_index' => $order_index, 'idfield' => $key_field);
223 + $values[] = array('order_index' => $order_index, 'idfield' => (int) $key_field);
224 224 $order_index++;
225 225 }
226 226 }
227 227 $this->db->updateBatch( $this->field_m->_table_name, $values, 'idfield');