Skip to content

Commit 3b29704

Browse files
authored
Merge pull request #154 from contactashish13/#152
chart 2nd step not workin #152
2 parents 0f860a7 + 32a34c3 commit 3b29704

File tree

5 files changed

+208
-194
lines changed

5 files changed

+208
-194
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
// +----------------------------------------------------------------------+
1919
// | Author: Eugene Manuilov <[email protected]> |
2020
// +----------------------------------------------------------------------+
21-
2221
/**
2322
* The module for all admin stuff.
2423
*
@@ -415,7 +414,7 @@ public function renderLibraryPage() {
415414
*
416415
* @access public
417416
*
418-
* @param array $links The array of original action links.
417+
* @param array $links The array of original action links.
419418
* @param string $file The plugin basename.
420419
*
421420
* @return array Updated array of action links.
@@ -442,7 +441,7 @@ public function getPluginActionLinks( $links, $file ) {
442441
*
443442
* @access public
444443
*
445-
* @param array $plugin_meta The array of a plugin meta links.
444+
* @param array $plugin_meta The array of a plugin meta links.
446445
* @param string $plugin_file The plugin's basename.
447446
*
448447
* @return array Updated array of plugin meta links.

classes/Visualizer/Render/Library.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
// +----------------------------------------------------------------------+
1919
// | Author: Eugene Manuilov <[email protected]> |
2020
// +----------------------------------------------------------------------+
21-
2221
/**
2322
* Renders visualizer library page.
2423
*
@@ -86,7 +85,7 @@ private function _renderLibrary() {
8685
$link = '<a class=" " href="' . esc_url( add_query_arg( array(
8786
'type' => $type,
8887
'vpage' => false,
89-
) ) ) . '">';
88+
) ) ) . '">';
9089
if ( ! $array['enabled'] ) {
9190
$link = "<a class=' visualizer-pro-only' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>";
9291
}
@@ -153,7 +152,7 @@ private function _renderLibrary() {
153152
* @access private
154153
*
155154
* @param string $placeholder_id The placeholder's id for the chart.
156-
* @param int $chart_id The id of the chart.
155+
* @param int $chart_id The id of the chart.
157156
*/
158157
private function _renderChartBox( $placeholder_id, $chart_id ) {
159158
$ajax_url = admin_url( 'admin-ajax.php' );

classes/Visualizer/Render/Page/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class="dashicons dashicons-lock"></span></h2>
153153
<select name="vz-import-from-chart" id="chart-id" class="visualizer-select">
154154
<?php
155155
$fetch_link = add_query_arg( array(
156-
'action' => Visualizer_Pro::ACTION_FETCH_DATA,
156+
'action' => defined( 'Visualizer_Pro' ) ? Visualizer_Pro::ACTION_FETCH_DATA : '',
157157
'nonce' => wp_create_nonce(),
158158
), admin_url( 'admin-ajax.php' ) );
159159

0 commit comments

Comments
 (0)