diff --git a/.github/workflows/new-issues.yml b/.github/workflows/new-issues.yml index 43d6908a8..7e04b5494 100755 --- a/.github/workflows/new-issues.yml +++ b/.github/workflows/new-issues.yml @@ -1,14 +1,40 @@ -name: Move new/reopened issues into Triage +name: Add to project on: issues: - types: [opened,reopened] + types: [opened,transferred] + jobs: - automate-project-columns: + add-to-project: + name: Add issue to project runs-on: ubuntu-latest steps: - - uses: alex-page/github-project-automation-plus@v0.2.2 + - uses: actions/add-to-project@main + id: add_project with: - project: Products(Extended) - column: Triage - repo-token: ${{ secrets.BOT_TOKEN }} \ No newline at end of file + project-url: ${{ secrets.PROJECT_PLANNING }} + github-token: ${{ secrets.BOT_TOKEN_PROJECT }} + - name: Set Team + env: + GITHUB_TOKEN: ${{ secrets.BOT_TOKEN_PROJECT }} + run: | + gh api graphql -f query=' + mutation( + $project: ID! + $item: ID! + $status_field: ID! + $status_value: String! + ) { + updateProjectNextItemField( + input: { + projectId: $project + itemId: $item + fieldId: $status_field + value: $status_value + } + ) { + projectNextItem { + id + } + } + }' -f project=${{ secrets.PROJECT_PLANNING_ID }} -f item=${{ steps.add_project.outputs.itemId }} -f status_field=${{ secrets.PLANNING_TEAM_FIELD_ID }} -f status_value=ed46988b --silent \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 04c2c5b33..9321018f3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +##### [Version 3.7.6](https://github.com/Codeinwp/visualizer/compare/v3.7.5...v3.7.6) (2022-05-26) + +- Fix PHP 8.0 or above compatibility issue +- Fix the space missing between the id and class attributes of the charts +- Fix compatibility issue with Ultimate Coupons for WooCommerce Free plugin +- Fix charts placed in accordion (tabs) that do not load properly +- Fix conflict with translation plugins + ##### [Version 3.7.5](https://github.com/Codeinwp/visualizer/compare/v3.7.4...v3.7.5) (2022-03-17) - Fix display long hAxis text issue diff --git a/classes/Visualizer/Module/Admin.php b/classes/Visualizer/Module/Admin.php index 1e9a9e7a1..40c6a44a5 100644 --- a/classes/Visualizer/Module/Admin.php +++ b/classes/Visualizer/Module/Admin.php @@ -54,7 +54,7 @@ public function __construct( Visualizer_Plugin $plugin ) { $this->_addAction( 'load-post.php', 'enqueueMediaScripts' ); $this->_addAction( 'load-post-new.php', 'enqueueMediaScripts' ); $this->_addAction( 'admin_footer', 'renderTemplates' ); - $this->_addAction( 'admin_enqueue_scripts', 'enqueueLibraryScripts', null, 8 ); + $this->_addAction( 'admin_enqueue_scripts', 'enqueueLibraryScripts', null, 0 ); $this->_addAction( 'admin_menu', 'registerAdminMenu' ); $this->_addFilter( 'media_view_strings', 'setupMediaViewStrings' ); $this->_addFilter( 'plugin_action_links', 'getPluginActionLinks', 10, 2 ); diff --git a/classes/Visualizer/Module/Chart.php b/classes/Visualizer/Module/Chart.php index d2edf0eb7..eb04b523c 100644 --- a/classes/Visualizer/Module/Chart.php +++ b/classes/Visualizer/Module/Chart.php @@ -490,6 +490,9 @@ private function deleteOldCharts() { */ public function renderChartPages() { defined( 'IFRAME_REQUEST' ) || define( 'IFRAME_REQUEST', 1 ); + if ( ! defined( 'ET_BUILDER_PRODUCT_VERSION' ) && function_exists( 'et_get_theme_version' ) ) { + define( 'ET_BUILDER_PRODUCT_VERSION', et_get_theme_version() ); + } // Set current screen for the render chart. set_current_screen( 'visualizer_render_chart' ); // check chart, if chart not exists, will create new one and redirects to the same page with proper chart id @@ -524,7 +527,11 @@ public function renderChartPages() { do_action( 'visualizer_pro_new_chart_defaults', $chart_id ); } wp_redirect( add_query_arg( 'chart', (int) $chart_id ) ); - defined( 'WP_TESTS_DOMAIN' ) ? wp_die() : exit(); + + if ( defined( 'WP_TESTS_DOMAIN' ) ) { + wp_die(); + } + exit(); } $_POST['save_chart_image'] = isset( $_POST['save_chart_image'] ) && 'yes' === $_POST['save_chart_image'] ? true : false; diff --git a/classes/Visualizer/Module/Frontend.php b/classes/Visualizer/Module/Frontend.php index 94faa2e2f..832196594 100644 --- a/classes/Visualizer/Module/Frontend.php +++ b/classes/Visualizer/Module/Frontend.php @@ -491,7 +491,7 @@ private function getHtmlAttributes( $attributes ) { } foreach ( $attributes as $name => $value ) { - $string .= sprintf( '%s="%s"', esc_attr( $name ), esc_attr( $value ) ); + $string .= sprintf( ' %s="%s"', esc_attr( $name ), esc_attr( $value ) ); } return $string; } diff --git a/classes/Visualizer/Plugin.php b/classes/Visualizer/Plugin.php index 910daf6b0..12c004b6b 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.5'; + const VERSION = '3.7.6'; // custom post types const CPT_VISUALIZER = 'visualizer'; diff --git a/classes/Visualizer/Render/Library.php b/classes/Visualizer/Render/Library.php index 134cd0dc6..4261e4ae0 100644 --- a/classes/Visualizer/Render/Library.php +++ b/classes/Visualizer/Render/Library.php @@ -359,7 +359,7 @@ private function _renderSidebar() { echo '
'; echo '

' . __( 'Discover the power of PRO!', 'visualizer' ) . '

'; + echo '
  • ' . __( '6 more chart types', 'visualizer' ); } else { echo '
  • ' . __( '11 more chart types', 'visualizer' ) . '
  • '; echo '
  • ' . __( 'Manual Data Editor', 'visualizer' ) . '
  • '; diff --git a/css/media.css b/css/media.css index 3dc23cc27..ab73c9c09 100644 --- a/css/media.css +++ b/css/media.css @@ -1,5 +1,5 @@ /* - Version: 3.7.5 + Version: 3.7.6 */ #visualizer-library-view { padding: 30px 10px 10px 30px; diff --git a/index.php b/index.php index 7021d1919..aecdccc0a 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.5 + Version: 3.7.6 Author: Themeisle Author URI: http://themeisle.com Requires at least: 3.5 diff --git a/js/render-facade.js b/js/render-facade.js index baa568f69..4a05b46c8 100644 --- a/js/render-facade.js +++ b/js/render-facade.js @@ -137,8 +137,10 @@ // display all charts that are NOT to be lazy-loaded. $( 'div.viz-facade-loaded:not(.visualizer-lazy):empty' ).removeClass( 'viz-facade-loaded' ); $('div.visualizer-front:not(.visualizer-lazy):not(.viz-facade-loaded)').each(function(index, element){ - var id = $(element).addClass('viz-facade-loaded').attr('id'); - showChart(id); + if ( $(element).is(':visible') ) { + var id = $(element).addClass('viz-facade-loaded').attr('id'); + showChart(id); + } refreshEachCharts(); }); diff --git a/js/render-google.js b/js/render-google.js index 3e281ae0e..aa977e753 100644 --- a/js/render-google.js +++ b/js/render-google.js @@ -229,7 +229,7 @@ var __visualizer_chart_images = []; } if(settings.hAxis && settings.hAxis.format == ''){ - settings.hAxis.format = 'YYYY-MM-dd'; + settings.hAxis.format = 'yyyy-MM-dd'; } } diff --git a/package.json b/package.json index 8ee4e476b..0a2d28a1e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "visualizer", - "version": "3.7.5", + "version": "3.7.6", "description": "Visualizer Lite", "repository": { "type": "git", diff --git a/readme.txt b/readme.txt index 7a3b7f11a..444a62ab6 100755 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: codeinwp,themeisle,marius2012,marius_codeinwp,hardeepasrani,rozroz,Madalin_ThemeIsle Tags: tables, charts, pie, visualization, graphs Requires at least: 3.5 -Tested up to: 5.9 +Tested up to: 6.0 Requires PHP: 5.6 Stable tag: trunk License: GPL v2.0 or later @@ -163,6 +163,17 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have ` == Changelog == +##### [Version 3.7.6](https://github.com/Codeinwp/visualizer/compare/v3.7.5...v3.7.6) (2022-05-26) + +- Fix PHP 8.0 or above compatibility issue +- Fix the space missing between the id and class attributes of the charts +- Fix compatibility issue with Ultimate Coupons for WooCommerce Free plugin +- Fix charts placed in accordion (tabs) that do not load properly +- Fix conflict with translation plugins + + + + ##### [Version 3.7.5](https://github.com/Codeinwp/visualizer/compare/v3.7.4...v3.7.5) (2022-03-17) - Fix display long hAxis text issue