diff --git a/.github/workflows/new-issues.yml b/.github/workflows/new-issues.yml index 7e04b5494..215d60630 100755 --- a/.github/workflows/new-issues.yml +++ b/.github/workflows/new-issues.yml @@ -25,15 +25,17 @@ jobs: $status_field: ID! $status_value: String! ) { - updateProjectNextItemField( + updateProjectV2ItemFieldValue( input: { - projectId: $project + projectId: $project itemId: $item fieldId: $status_field - value: $status_value + value: { + singleSelectOptionId: $status_value + } } ) { - projectNextItem { + projectV2Item { id } } diff --git a/CHANGELOG.md b/CHANGELOG.md index ef2cf57dc..9dc9b8896 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +##### [Version 3.7.10](https://github.com/Codeinwp/visualizer/compare/v3.7.9...v3.7.10) (2022-07-05) + + +- Fix watermark/copyright opacity wrong value [#910](https://github.com/Codeinwp/visualizer/issues/910) + ##### [Version 3.7.9](https://github.com/Codeinwp/visualizer/compare/v3.7.8...v3.7.9) (2022-06-22) * Fix branding bad HTML diff --git a/classes/Visualizer/Gutenberg/Block.php b/classes/Visualizer/Gutenberg/Block.php index d575a9b70..31210b5a5 100644 --- a/classes/Visualizer/Gutenberg/Block.php +++ b/classes/Visualizer/Gutenberg/Block.php @@ -750,8 +750,12 @@ public function upload_csv_data( $data ) { return false; } - if ( $data['url'] && ! is_wp_error( $data['url'] ) && filter_var( $data['url'], FILTER_VALIDATE_URL ) ) { - $source = new Visualizer_Source_Csv_Remote( $data['url'] ); + $remote_data = false; + if ( isset( $data['url'] ) && function_exists( 'wp_http_validate_url' ) ) { + $remote_data = wp_http_validate_url( $data['url'] ); + } + if ( false !== $remote_data && ! is_wp_error( $remote_data ) ) { + $source = new Visualizer_Source_Csv_Remote( $remote_data ); if ( $source->fetch() ) { $temp = $source->getData(); if ( is_string( $temp ) && is_array( unserialize( $temp ) ) ) { diff --git a/classes/Visualizer/Module/Chart.php b/classes/Visualizer/Module/Chart.php index ed0f61241..75e9d7fee 100644 --- a/classes/Visualizer/Module/Chart.php +++ b/classes/Visualizer/Module/Chart.php @@ -1111,10 +1111,15 @@ public function uploadData() { $source = null; $render = new Visualizer_Render_Page_Update(); - if ( isset( $_POST['remote_data'] ) && filter_var( $_POST['remote_data'], FILTER_VALIDATE_URL ) ) { - $source = new Visualizer_Source_Csv_Remote( $_POST['remote_data'] ); + + $remote_data = false; + if ( isset( $_POST['remote_data'] ) && function_exists( 'wp_http_validate_url' ) ) { + $remote_data = wp_http_validate_url( $_POST['remote_data'] ); + } + if ( false !== $remote_data ) { + $source = new Visualizer_Source_Csv_Remote( $remote_data ); if ( isset( $_POST['vz-import-time'] ) ) { - apply_filters( 'visualizer_pro_chart_schedule', $chart_id, $_POST['remote_data'], $_POST['vz-import-time'] ); + apply_filters( 'visualizer_pro_chart_schedule', $chart_id, $remote_data, $_POST['vz-import-time'] ); } // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison } elseif ( isset( $_FILES['local_data'] ) && $_FILES['local_data']['error'] == 0 ) { diff --git a/classes/Visualizer/Module/Frontend.php b/classes/Visualizer/Module/Frontend.php index 133155dec..47296dec5 100644 --- a/classes/Visualizer/Module/Frontend.php +++ b/classes/Visualizer/Module/Frontend.php @@ -477,7 +477,7 @@ public function renderChart( $atts ) { $prefix = 'T' . 'a' . 'bl' . 'e'; } // return placeholder div - return '
' . $actions_div . '
getHtmlAttributes( $attributes ) . '>
' . $this->addSchema( $chart->ID ) . ( ! Visualizer_Module::is_pro() ? ( '<' . 'di' . 'v st' . 'yl' . 'e="' . 'op' . 'a' . 'ci' . 't' . 'y:' . '0' . '.' . '.7' . ';t' . 'ex' . 't-a' . 'li' . 'gn:' . 'ri' . 'gh' . 't;b' . 'o' . 'tto' . 'm: 1' . '0px; z-i' . 'nd' . 'ex:1' . '00' . '0; ' . 'le' . 'ft' . ':2' . '0px' . '; fo' . 'nt-si' . 'ze: 1' . '4px">' . $prefix . ' b' . 'y' . ' V' . 'is' . 'u' . 'a' . 'l' . 'i' . 'z' . 'e' . 'r' . '' . '<' . '/' . 'd' . 'i' . 'v' . '>' ) : '' ) . '
'; + return '
' . $actions_div . '
getHtmlAttributes( $attributes ) . '>
' . $this->addSchema( $chart->ID ) . ( ! Visualizer_Module::is_pro() ? ( '<' . 'di' . 'v st' . 'yl' . 'e="' . 'op' . 'a' . 'ci' . 't' . 'y:' . '0' . '.7' . ';t' . 'ex' . 't-a' . 'li' . 'gn:' . 'ri' . 'gh' . 't;b' . 'o' . 'tto' . 'm: 1' . '0px; z-i' . 'nd' . 'ex:1' . '00' . '0; ' . 'le' . 'ft' . ':2' . '0px' . '; fo' . 'nt-si' . 'ze: 1' . '4px">' . $prefix . ' b' . 'y' . '
V' . 'is' . 'u' . 'a' . 'l' . 'i' . 'z' . 'e' . 'r' . '' . '<' . '/' . 'd' . 'i' . 'v' . '>' ) : '' ) . '
'; } /** diff --git a/classes/Visualizer/Plugin.php b/classes/Visualizer/Plugin.php index 11ff40e98..fa3233b1b 100644 --- a/classes/Visualizer/Plugin.php +++ b/classes/Visualizer/Plugin.php @@ -28,7 +28,7 @@ class Visualizer_Plugin { const NAME = 'visualizer'; - const VERSION = '3.7.9'; + const VERSION = '3.7.10'; // custom post types const CPT_VISUALIZER = 'visualizer'; diff --git a/css/media.css b/css/media.css index 7be643c17..6273f2915 100644 --- a/css/media.css +++ b/css/media.css @@ -1,5 +1,5 @@ /* - Version: 3.7.9 + Version: 3.7.10 */ #visualizer-library-view { padding: 30px 10px 10px 30px; diff --git a/index.php b/index.php index 3832fca64..73a85628e 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ Plugin Name: Visualizer: Tables and Charts for WordPress Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/ Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases. - Version: 3.7.9 + Version: 3.7.10 Author: Themeisle Author URI: http://themeisle.com Requires at least: 3.5 diff --git a/package.json b/package.json index 8a0ba2eab..6566cca76 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "visualizer", - "version": "3.7.9", + "version": "3.7.10", "description": "Visualizer Lite", "repository": { "type": "git", diff --git a/readme.txt b/readme.txt index 9619d5d00..a92db4f32 100755 --- a/readme.txt +++ b/readme.txt @@ -163,6 +163,14 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have ` == Changelog == +##### [Version 3.7.10](https://github.com/Codeinwp/visualizer/compare/v3.7.9...v3.7.10) (2022-07-05) + + +- Fix watermark/copyright opacity wrong value [#910](https://github.com/Codeinwp/visualizer/issues/910) + + + + ##### [Version 3.7.9](https://github.com/Codeinwp/visualizer/compare/v3.7.8...v3.7.9) (2022-06-22) * Fix branding bad HTML