| @@ -104,9 +104,9 @@ | ||
| 104 | 104 | $table_col_mapping = Visualizer_Source_Query_Params::get_all_db_tables_column_mapping( null, false ); |
| 105 | 105 | |
| 106 | 106 | $translation_array = array( |
| 107 | 107 | 'isPro' => $type, |
| 108 | - 'proTeaser' => tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'blockupsell'), | |
| 108 | + 'proTeaser' => Visualizer_Plugin::PRO_TEASER_URL, | |
| 109 | 109 | 'absurl' => VISUALIZER_ABSURL, |
| 110 | 110 | 'charts' => Visualizer_Module_Admin::_getChartTypesLocalized(), |
| 111 | 111 | 'adminPage' => menu_page_url( 'visualizer', false ), |
| 112 | 112 | 'sqlTable' => $table_col_mapping, |
| @@ -749,14 +749,10 @@ | ||
| 749 | 749 | if ( ! current_user_can( 'edit_posts' ) ) { |
| 750 | 750 | return false; |
| 751 | 751 | } |
| 752 | 752 | |
| 753 | - $remote_data = false; | |
| 754 | - if ( isset( $data['url'] ) && function_exists( 'wp_http_validate_url' ) ) { | |
| 755 | - $remote_data = wp_http_validate_url( $data['url'] ); | |
| 756 | - } | |
| 757 | - if ( false !== $remote_data && ! is_wp_error( $remote_data ) ) { | |
| 758 | - $source = new Visualizer_Source_Csv_Remote( $remote_data ); | |
| 753 | + if ( $data['url'] && ! is_wp_error( $data['url'] ) && filter_var( $data['url'], FILTER_VALIDATE_URL ) ) { | |
| 754 | + $source = new Visualizer_Source_Csv_Remote( $data['url'] ); | |
| 759 | 755 | if ( $source->fetch() ) { |
| 760 | 756 | $temp = $source->getData(); |
| 761 | 757 | if ( is_string( $temp ) && is_array( unserialize( $temp ) ) ) { |
| 762 | 758 | $content['series'] = $source->getSeries(); |