| @@ -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'); |