Skip to content

Commit d316eff

Browse files
Merge pull request #343 from Codeinwp/development
Fix bug "Warning: A non-numeric value encountered" Tested with WP 5.0
2 parents 717f43e + 1a95bc5 commit d316eff

File tree

8 files changed

+17
-10
lines changed

8 files changed

+17
-10
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ public function enqueueMediaScripts() {
215215
wp_enqueue_style( 'visualizer-media', VISUALIZER_ABSURL . 'css/media.css', array( 'media-views' ), Visualizer_Plugin::VERSION );
216216

217217
// Load all the assets for the different libraries we support.
218-
$deps = Visualizer_Render_Sidebar_Google::enqueue_assets( array( 'media-editor' ) );
219-
$deps += Visualizer_Render_Sidebar_Type_DataTable::enqueue_assets( array( 'media-editor' ) );
218+
$deps = array(
219+
Visualizer_Render_Sidebar_Google::enqueue_assets( array( 'media-editor' ) ),
220+
Visualizer_Render_Sidebar_Type_DataTable::enqueue_assets( array( 'media-editor' ) ),
221+
);
220222

221223
wp_enqueue_script( 'visualizer-media-model', VISUALIZER_ABSURL . 'js/media/model.js', $deps, Visualizer_Plugin::VERSION, true );
222224
wp_enqueue_script( 'visualizer-media-collection', VISUALIZER_ABSURL . 'js/media/collection.js', array( 'visualizer-media-model' ), Visualizer_Plugin::VERSION, true );

classes/Visualizer/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class Visualizer_Plugin {
2929

3030
const NAME = 'visualizer';
31-
const VERSION = '3.1.1';
31+
const VERSION = '3.1.2';
3232

3333
// custom post types
3434
const CPT_VISUALIZER = 'visualizer';

css/library.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,4 +294,9 @@ button.media-modal-close {
294294

295295
.dataTables_scrollBody {
296296
overflow: hidden !important;
297+
}
298+
299+
.dataTables_wrapper {
300+
height: 300px;
301+
overflow: hidden !important;
297302
}

css/media.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Version: 3.1.1
2+
Version: 3.1.2
33
*/
44
#visualizer-library-view {
55
padding: 30px 10px 10px 30px;

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Visualizer: Tables and Charts Manager for WordPress (Lite)
55
Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
66
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.
7-
Version: 3.1.1
7+
Version: 3.1.2
88
Author: Themeisle
99
Author URI: http://themeisle.com
1010
License: GPL v2.0 or later

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "visualizer",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "Visualizer Lite",
55
"repository": {
66
"type": "git",

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Visualizer: Tables and Charts Manager for WordPress (Lite) # #
2-
**Contributors:** [codeinwp](https://profiles.wordpress.org/codeinwp), [marius2012](https://profiles.wordpress.org/marius2012), [marius_codeinwp](https://profiles.wordpress.org/marius_codeinwp), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [themeisle](https://profiles.wordpress.org/themeisle), [Madalin_ThemeIsle](https://profiles.wordpress.org/Madalin_ThemeIsle), [rozroz](https://profiles.wordpress.org/rozroz)
2+
**Contributors:** [codeinwp](https://profiles.wordpress.org/codeinwp), [marius2012](https://profiles.wordpress.org/marius2012), [marius_codeinwp](https://profiles.wordpress.org/marius_codeinwp), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [themeisle](https://profiles.wordpress.org/themeisle), [Madalin_ThemeIsle](https://profiles.wordpress.org/Madalin_ThemeIsle), [contactashish13](https://profiles.wordpress.org/rozroz)
33
**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, data tables
44
**Requires at least:** 3.5
5-
**Tested up to:** 4.9
5+
**Tested up to:** 5.0
66
**Stable tag:** trunk
77
**License:** GPL v2.0 or later
88
**License URI:** http://www.opensource.org/licenses/gpl-license.php

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
=== Visualizer: Tables and Charts Manager for WordPress (Lite) # ===
2-
Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madalin_ThemeIsle,rozroz
2+
Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madalin_ThemeIsle,contactashish13
33
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, data tables
44
Requires at least: 3.5
5-
Tested up to: 4.9
5+
Tested up to: 5.0
66
Stable tag: trunk
77
License: GPL v2.0 or later
88
License URI: http://www.opensource.org/licenses/gpl-license.php

0 commit comments

Comments
 (0)