| @@ -143,9 +143,9 @@ | ||
| 143 | 143 | } else { |
| 144 | 144 | wp_send_json_error( 'i don\'t evan kno\'' ); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | - $data = $this->process_remote_data( $data ); | |
| 147 | + $this->process_remote_data( $data ); | |
| 148 | 148 | break; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | case 'recall' : { |
| @@ -192,9 +192,9 @@ | ||
| 192 | 192 | $already_imported = true; |
| 193 | 193 | continue; |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | - $updated = update_option( $step_id, $value ); | |
| 196 | + update_option( $step_id, $value ); | |
| 197 | 197 | } |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | if ( $already_imported ) { |
| @@ -381,10 +381,8 @@ | ||
| 381 | 381 | if ( isset( $data['widgets'] ) && ! empty( $data['widgets'] ) ) { |
| 382 | 382 | $this->add_step( 'widgets', 'widgets', $data['widgets'] ); |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | - if ( isset( $data['widgets'] ) && ! empty( $data['widgets'] ) ) {} | |
| 386 | - | |
| 387 | 385 | // select what you can get from the export |
| 388 | 386 | if ( isset( $data['taxonomies'] ) && ! empty( $data['taxonomies'] ) ) { |
| 389 | 387 | |
| 390 | 388 | foreach ( $data['taxonomies'] as $tax => $term_args ) { |
| @@ -467,18 +465,14 @@ | ||
| 467 | 465 | } |
| 468 | 466 | |
| 469 | 467 | protected function get_customify_field_data( $option_key, $step_id ) { |
| 470 | 468 | |
| 471 | - global $pixcustomify_plugin; | |
| 469 | + $options = PixCustomifyPlugin()->get_options_configs(); | |
| 472 | 470 | |
| 473 | - $options = $pixcustomify_plugin->get_options_configs(); | |
| 474 | - | |
| 475 | 471 | if ( ! isset( $options[ $option_key ] ) ) { |
| 476 | - wp_send_json_error( 'inexistent key' ); | |
| 472 | + wp_send_json_error( 'nonexistent key' ); | |
| 477 | 473 | } |
| 478 | 474 | |
| 479 | - $option_config = $options[ $option_key ]; | |
| 480 | - | |
| 481 | 475 | if ( ! isset( $options[ $option_key ]['imports'] ) ) { |
| 482 | 476 | wp_send_json_error( 'where is imports????' ); |
| 483 | 477 | } |
| 484 | 478 | |
| @@ -619,5 +613,5 @@ | ||
| 619 | 613 | $new_widget_name = $widget_name . '-' . $widget_index; |
| 620 | 614 | |
| 621 | 615 | return $new_widget_name; |
| 622 | 616 | } |
| 623 | -} | |
| 617 | +} | |