PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.3.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.3.1
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Module/Utility.php +5 -1 3.3.03.3.1 View file →
@@ -186,9 +186,9 @@
186 186 }
187 187 }
188 188
189 189 /**
190 - * Sets some defaults in the chart for ChartJS charts.
190 + * Sets some defaults in the chart for ChartJS charts. Only during first creation.
191 191 *
192 192 * @since 3.3.0
193 193 *
194 194 * @access private
@@ -193,8 +193,12 @@
193 193 *
194 194 * @access private
195 195 */
196 196 private static function set_defaults_chartjs( $chart, $post_status ) {
197 + if ( $post_status !== 'auto-draft' ) {
198 + return;
199 + }
200 +
197 201 $type = get_post_meta( $chart->ID, Visualizer_Plugin::CF_CHART_TYPE, true );
198 202 $series = get_post_meta( $chart->ID, Visualizer_Plugin::CF_SERIES, true );
199 203 $settings = get_post_meta( $chart->ID, Visualizer_Plugin::CF_SETTINGS, true );
200 204