WordPress Charts and Graphs Lite - Version 3.9.1

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon WordPress Charts and Graphs Lite
Version 3.9.1
Comparing to
See all releases

Code changes from version 3.9.0 to 3.9.1

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  #### [Version 3.9.0](https://github.com/Codeinwp/visualizer/compare/v3.8.1...v3.9.0) (2022-11-10)
2
 
3
  - Fixed table chart decimal number issue Decimal Numbers are ignored and not displayed [#955](https://github.com/Codeinwp/visualizer/issues/955)
1
+ ##### [Version 3.9.1](https://github.com/Codeinwp/visualizer/compare/v3.9.0...v3.9.1) (2022-11-17)
2
+
3
+ - Fixed PHP error when Polylang plugin is activated [#960](https://github.com/Codeinwp/visualizer/issues/960)
4
+
5
  #### [Version 3.9.0](https://github.com/Codeinwp/visualizer/compare/v3.8.1...v3.9.0) (2022-11-10)
6
 
7
  - Fixed table chart decimal number issue Decimal Numbers are ignored and not displayed [#955](https://github.com/Codeinwp/visualizer/issues/955)
classes/Visualizer/Module/Admin.php CHANGED
@@ -768,8 +768,8 @@ class Visualizer_Module_Admin extends Visualizer_Module {
768
  */
769
  private function getDisplayFilters( &$query_args ) {
770
  $query = array();
771
-
772
- if ( Visualizer_Module::is_pro() && function_exists( 'icl_get_languages' ) ) {
773
  $current_lang = icl_get_current_language();
774
  if ( in_array( $current_lang, array( 'all', icl_get_default_language() ), true ) ) {
775
  $query[] = array(
@@ -1138,16 +1138,15 @@ class Visualizer_Module_Admin extends Visualizer_Module {
1138
  * @return bool Default false
1139
  */
1140
  public function addMultilingualSupport( $chart_id ) {
 
1141
  if ( Visualizer_Module::is_pro() ) {
1142
  return;
1143
  }
1144
- if ( function_exists( 'icl_get_languages' ) ) {
1145
  $language = icl_get_languages();
1146
  $current_lang = icl_get_current_language();
1147
  $default_lang = icl_get_default_language();
1148
  $post_info = wpml_get_language_information( null, $chart_id );
1149
-
1150
- global $sitepress;
1151
  $translations = array();
1152
  if ( ! empty( $post_info ) && ( $default_lang === $post_info['language_code'] ) ) {
1153
  $trid = $sitepress->get_element_trid( $chart_id, 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
768
  */
769
  private function getDisplayFilters( &$query_args ) {
770
  $query = array();
771
+ global $sitepress;
772
+ if ( Visualizer_Module::is_pro() && ( function_exists( 'icl_get_languages' ) && $sitepress instanceof \SitePress ) ) {
773
  $current_lang = icl_get_current_language();
774
  if ( in_array( $current_lang, array( 'all', icl_get_default_language() ), true ) ) {
775
  $query[] = array(
1138
  * @return bool Default false
1139
  */
1140
  public function addMultilingualSupport( $chart_id ) {
1141
+ global $sitepress;
1142
  if ( Visualizer_Module::is_pro() ) {
1143
  return;
1144
  }
1145
+ if ( function_exists( 'icl_get_languages' ) && $sitepress instanceof \SitePress ) {
1146
  $language = icl_get_languages();
1147
  $current_lang = icl_get_current_language();
1148
  $default_lang = icl_get_default_language();
1149
  $post_info = wpml_get_language_information( null, $chart_id );
 
 
1150
  $translations = array();
1151
  if ( ! empty( $post_info ) && ( $default_lang === $post_info['language_code'] ) ) {
1152
  $trid = $sitepress->get_element_trid( $chart_id, 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
classes/Visualizer/Module/Chart.php CHANGED
@@ -461,8 +461,8 @@ class Visualizer_Module_Chart extends Visualizer_Module {
461
  }
462
  }
463
  if ( $success ) {
464
- if ( Visualizer_Module::is_pro() && function_exists( 'icl_get_languages' ) ) {
465
- global $sitepress;
466
  $trid = $sitepress->get_element_trid( $chart_id, 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
467
  $translations = $sitepress->get_element_translations( $trid );
468
  if ( ! empty( $translations ) ) {
461
  }
462
  }
463
  if ( $success ) {
464
+ global $sitepress;
465
+ if ( Visualizer_Module::is_pro() && ( function_exists( 'icl_get_languages' ) && $sitepress instanceof \SitePress ) ) {
466
  $trid = $sitepress->get_element_trid( $chart_id, 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
467
  $translations = $sitepress->get_element_translations( $trid );
468
  if ( ! empty( $translations ) ) {
classes/Visualizer/Module/Frontend.php CHANGED
@@ -305,7 +305,8 @@ class Visualizer_Module_Frontend extends Visualizer_Module {
305
  $atts
306
  );
307
 
308
- if ( Visualizer_Module::is_pro() && function_exists( 'icl_get_languages' ) ) {
 
309
  global $sitepress;
310
  $locale = icl_get_current_language();
311
  $locale = strtolower( str_replace( '_', '-', $locale ) );
305
  $atts
306
  );
307
 
308
+ global $sitepress;
309
+ if ( Visualizer_Module::is_pro() && ( function_exists( 'icl_get_languages' ) && $sitepress instanceof \SitePress ) ) {
310
  global $sitepress;
311
  $locale = icl_get_current_language();
312
  $locale = strtolower( str_replace( '_', '-', $locale ) );
classes/Visualizer/Plugin.php CHANGED
@@ -28,7 +28,7 @@
28
  class Visualizer_Plugin {
29
 
30
  const NAME = 'visualizer';
31
- const VERSION = '3.9.0';
32
 
33
  // custom post types
34
  const CPT_VISUALIZER = 'visualizer';
28
  class Visualizer_Plugin {
29
 
30
  const NAME = 'visualizer';
31
+ const VERSION = '3.9.1';
32
 
33
  // custom post types
34
  const CPT_VISUALIZER = 'visualizer';
css/media.css CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- Version: 3.9.0
3
  */
4
  #visualizer-library-view {
5
  padding: 30px 10px 10px 30px;
1
  /*
2
+ Version: 3.9.1
3
  */
4
  #visualizer-library-view {
5
  padding: 30px 10px 10px 30px;
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Visualizer: Tables and Charts for WordPress
4
  Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs/
5
  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.
6
- Version: 3.9.0
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Requires at least: 3.5
3
  Plugin Name: Visualizer: Tables and Charts for WordPress
4
  Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs/
5
  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.
6
+ Version: 3.9.1
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Requires at least: 3.5
readme.txt CHANGED
@@ -163,6 +163,13 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
163
 
164
  == Changelog ==
165
 
 
 
 
 
 
 
 
166
  #### [Version 3.9.0](https://github.com/Codeinwp/visualizer/compare/v3.8.1...v3.9.0) (2022-11-10)
167
 
168
  - Fixed table chart decimal number issue Decimal Numbers are ignored and not displayed [#955](https://github.com/Codeinwp/visualizer/issues/955)
163
 
164
  == Changelog ==
165
 
166
+ ##### [Version 3.9.1](https://github.com/Codeinwp/visualizer/compare/v3.9.0...v3.9.1) (2022-11-17)
167
+
168
+ - Fixed PHP error when Polylang plugin is activated [#960](https://github.com/Codeinwp/visualizer/issues/960)
169
+
170
+
171
+
172
+
173
  #### [Version 3.9.0](https://github.com/Codeinwp/visualizer/compare/v3.8.1...v3.9.0) (2022-11-10)
174
 
175
  - Fixed table chart decimal number issue Decimal Numbers are ignored and not displayed [#955](https://github.com/Codeinwp/visualizer/issues/955)
vendor/autoload.php CHANGED
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
- return ComposerAutoloaderInitd8aa5b67905ce8ae7718f6219ae2a013::getLoader();
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
+ return ComposerAutoloaderInita13c88368e970f908daaa08fcbb1d573::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd8aa5b67905ce8ae7718f6219ae2a013
6
  {
7
  private static $loader;
8
 
@@ -24,18 +24,18 @@ class ComposerAutoloaderInitd8aa5b67905ce8ae7718f6219ae2a013
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitd8aa5b67905ce8ae7718f6219ae2a013', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitd8aa5b67905ce8ae7718f6219ae2a013', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
- call_user_func(\Composer\Autoload\ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
- $includeFiles = \Composer\Autoload\ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
- composerRequired8aa5b67905ce8ae7718f6219ae2a013($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
@@ -47,7 +47,7 @@ class ComposerAutoloaderInitd8aa5b67905ce8ae7718f6219ae2a013
47
  * @param string $file
48
  * @return void
49
  */
50
- function composerRequired8aa5b67905ce8ae7718f6219ae2a013($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita13c88368e970f908daaa08fcbb1d573
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInita13c88368e970f908daaa08fcbb1d573', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInita13c88368e970f908daaa08fcbb1d573', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInita13c88368e970f908daaa08fcbb1d573::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
+ $includeFiles = \Composer\Autoload\ComposerStaticInita13c88368e970f908daaa08fcbb1d573::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
+ composerRequirea13c88368e970f908daaa08fcbb1d573($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
47
  * @param string $file
48
  * @return void
49
  */
50
+ function composerRequirea13c88368e970f908daaa08fcbb1d573($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013
8
  {
9
  public static $files = array (
10
  'abede361264e2ae69ec1eee813a101af' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/abs.php',
@@ -356,10 +356,10 @@ class ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013
356
  public static function getInitializer(ClassLoader $loader)
357
  {
358
  return \Closure::bind(function () use ($loader) {
359
- $loader->prefixLengthsPsr4 = ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013::$prefixLengthsPsr4;
360
- $loader->prefixDirsPsr4 = ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013::$prefixDirsPsr4;
361
- $loader->prefixesPsr0 = ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013::$prefixesPsr0;
362
- $loader->classMap = ComposerStaticInitd8aa5b67905ce8ae7718f6219ae2a013::$classMap;
363
 
364
  }, null, ClassLoader::class);
365
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita13c88368e970f908daaa08fcbb1d573
8
  {
9
  public static $files = array (
10
  'abede361264e2ae69ec1eee813a101af' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/abs.php',
356
  public static function getInitializer(ClassLoader $loader)
357
  {
358
  return \Closure::bind(function () use ($loader) {
359
+ $loader->prefixLengthsPsr4 = ComposerStaticInita13c88368e970f908daaa08fcbb1d573::$prefixLengthsPsr4;
360
+ $loader->prefixDirsPsr4 = ComposerStaticInita13c88368e970f908daaa08fcbb1d573::$prefixDirsPsr4;
361
+ $loader->prefixesPsr0 = ComposerStaticInita13c88368e970f908daaa08fcbb1d573::$prefixesPsr0;
362
+ $loader->classMap = ComposerStaticInita13c88368e970f908daaa08fcbb1d573::$classMap;
363
 
364
  }, null, ClassLoader::class);
365
  }
vendor/composer/installed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/visualizer',
4
- 'pretty_version' => 'v3.9.0',
5
- 'version' => '3.9.0.0',
6
- 'reference' => '9607e8c0795ac296d9e6128844f9f8f09d574946',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -20,9 +20,9 @@
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/visualizer' => array(
23
- 'pretty_version' => 'v3.9.0',
24
- 'version' => '3.9.0.0',
25
- 'reference' => '9607e8c0795ac296d9e6128844f9f8f09d574946',
26
  'type' => 'wordpress-plugin',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/visualizer',
4
+ 'pretty_version' => 'v3.9.1',
5
+ 'version' => '3.9.1.0',
6
+ 'reference' => 'f148afba3cee011fd796d865141541641c6fe3ce',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/visualizer' => array(
23
+ 'pretty_version' => 'v3.9.1',
24
+ 'version' => '3.9.1.0',
25
+ 'reference' => 'f148afba3cee011fd796d865141541641c6fe3ce',
26
  'type' => 'wordpress-plugin',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),