WordPress Charts and Graphs Lite - Version 1.4.1.1

Version Description

  • Removed CSV parser escape constant to prevent warnings which appears when PHP 5.2.x or less is used
Download this release

Release Info

Developer madpixels
Plugin Icon WordPress Charts and Graphs Lite
Version 1.4.1.1
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.1.1

classes/Visualizer/Plugin.php CHANGED
@@ -30,7 +30,7 @@
30
  class Visualizer_Plugin {
31
 
32
  const NAME = 'visualizer';
33
- const VERSION = '1.4.1';
34
 
35
  // custom post types
36
  const CPT_VISUALIZER = 'visualizer';
30
  class Visualizer_Plugin {
31
 
32
  const NAME = 'visualizer';
33
+ const VERSION = '1.4.1.1';
34
 
35
  // custom post types
36
  const CPT_VISUALIZER = 'visualizer';
classes/Visualizer/Source/Csv.php CHANGED
@@ -62,9 +62,9 @@ class Visualizer_Source_Csv extends Visualizer_Source {
62
  */
63
  private function _fetchSeries( &$handle ) {
64
  // read column titles
65
- $labels = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE, VISUALIZER_CSV_ESCAPRE );
66
  // read series types
67
- $types = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE, VISUALIZER_CSV_ESCAPRE );
68
 
69
  if ( !$labels || !$types ) {
70
  return false;
@@ -78,7 +78,7 @@ class Visualizer_Source_Csv extends Visualizer_Source {
78
  $handle = fopen( $this->_filename, 'rb' );
79
 
80
  // re read the labels and empty types array
81
- $labels = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE, VISUALIZER_CSV_ESCAPRE );
82
  $types = array();
83
  }
84
 
@@ -119,7 +119,7 @@ class Visualizer_Source_Csv extends Visualizer_Source {
119
  }
120
 
121
  // fetch data
122
- while ( ( $data = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE, VISUALIZER_CSV_ESCAPRE ) ) !== false ) {
123
  $this->_data[] = $this->_normalizeData( $data );
124
  }
125
 
62
  */
63
  private function _fetchSeries( &$handle ) {
64
  // read column titles
65
+ $labels = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE );
66
  // read series types
67
+ $types = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE );
68
 
69
  if ( !$labels || !$types ) {
70
  return false;
78
  $handle = fopen( $this->_filename, 'rb' );
79
 
80
  // re read the labels and empty types array
81
+ $labels = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE );
82
  $types = array();
83
  }
84
 
119
  }
120
 
121
  // fetch data
122
+ while ( ( $data = fgetcsv( $handle, 0, VISUALIZER_CSV_DELIMITER, VISUALIZER_CSV_ENCLOSURE ) ) !== false ) {
123
  $this->_data[] = $this->_normalizeData( $data );
124
  }
125
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WordPress Visualizer
4
  Plugin URI: https://github.com/madpixelslabs/visualizer
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: 1.4.1
7
  Author: Madpixels
8
  Author URI: http://madpixels.net
9
  License: GPL v2.0 or later
@@ -78,10 +78,6 @@ function visualizer_launch() {
78
  define( 'VISUALIZER_CSV_ENCLOSURE', '"' );
79
  }
80
 
81
- if ( !defined( 'VISUALIZER_CSV_ESCAPRE' ) ) {
82
- define( 'VISUALIZER_CSV_ESCAPRE', '\\' );
83
- }
84
-
85
  // don't load the plugin if cron job is running or doing autosave
86
  $doing_autosave = defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE;
87
  $doing_cron = defined( 'DOING_CRON' ) && DOING_CRON;
3
  Plugin Name: WordPress Visualizer
4
  Plugin URI: https://github.com/madpixelslabs/visualizer
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: 1.4.1.1
7
  Author: Madpixels
8
  Author URI: http://madpixels.net
9
  License: GPL v2.0 or later
78
  define( 'VISUALIZER_CSV_ENCLOSURE', '"' );
79
  }
80
 
 
 
 
 
81
  // don't load the plugin if cron job is running or doing autosave
82
  $doing_autosave = defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE;
83
  $doing_cron = defined( 'DOING_CRON' ) && DOING_CRON;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://goo.gl/hN9FYf
4
  Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
5
  Requires at least: 3.5
6
  Tested up to: 3.8.1
7
- Stable tag: 1.4.1
8
  License: GPL v2.0 or later
9
  License URI: http://www.opensource.org/licenses/gpl-license.php
10
 
@@ -58,6 +58,9 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
58
 
59
  == Changelog ==
60
 
 
 
 
61
  = 1.4.1 =
62
  * Fixed issue which prevents the plugin working on SSL backend
63
  * Fixed issue with CSV file uploading in IE and other browsers
4
  Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
5
  Requires at least: 3.5
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.4.1.1
8
  License: GPL v2.0 or later
9
  License URI: http://www.opensource.org/licenses/gpl-license.php
10
 
58
 
59
  == Changelog ==
60
 
61
+ = 1.4.1.1 =
62
+ * Removed CSV parser escape constant to prevent warnings which appears when PHP 5.2.x or less is used
63
+
64
  = 1.4.1 =
65
  * Fixed issue which prevents the plugin working on SSL backend
66
  * Fixed issue with CSV file uploading in IE and other browsers