| @@ -58,9 +58,8 @@ | ||
| 58 | 58 | $this->_addAction( 'admin_menu', 'registerAdminMenu' ); |
| 59 | 59 | $this->_addFilter( 'media_view_strings', 'setupMediaViewStrings' ); |
| 60 | 60 | $this->_addFilter( 'plugin_action_links', 'getPluginActionLinks', 10, 2 ); |
| 61 | 61 | $this->_addFilter( 'plugin_row_meta', 'getPluginMetaLinks', 10, 2 ); |
| 62 | - $this->_addFilter( 'visualizer_logger_flag', 'get_logger_flag', 10, 1 ); | |
| 63 | 62 | $this->_addAjaxAction( Visualizer_Plugin::ACTION_TRACK, 'visualizer_enable_track' ); |
| 64 | 63 | } |
| 65 | 64 | |
| 66 | 65 | /** |
| @@ -77,19 +76,8 @@ | ||
| 77 | 76 | wp_send_json_success( array( 'status' => $status ) ); |
| 78 | 77 | } |
| 79 | 78 | |
| 80 | 79 | /** |
| 81 | - * Either the tracking is active or not. | |
| 82 | - * | |
| 83 | - * @return bool The flag status. | |
| 84 | - */ | |
| 85 | - public function get_logger_flag() { | |
| 86 | - $flag = get_option( 'visualizer_logger_flag', 'no' ); | |
| 87 | - | |
| 88 | - return ( $flag === 'yes' ); | |
| 89 | - } | |
| 90 | - | |
| 91 | - /** | |
| 92 | 80 | * Enqueues media scripts and styles. |
| 93 | 81 | * |
| 94 | 82 | * @since 1.0.0 |
| 95 | 83 | * @uses wp_enqueue_style To enqueue style file. |
| @@ -371,9 +359,9 @@ | ||
| 371 | 359 | $settings = get_post_meta( $chart->ID, Visualizer_Plugin::CF_SETTINGS, true ); |
| 372 | 360 | unset( $settings['height'], $settings['width'] ); |
| 373 | 361 | $type = get_post_meta( $chart->ID, Visualizer_Plugin::CF_CHART_TYPE, true ); |
| 374 | 362 | $series = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_SERIES, get_post_meta( $chart->ID, Visualizer_Plugin::CF_SERIES, true ), $chart->ID, $type ); |
| 375 | - $data = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_DATA, unserialize( $chart->post_content ), $chart->ID, $type ); | |
| 363 | + $data = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_DATA, unserialize( html_entity_decode( $chart->post_content ) ), $chart->ID, $type ); | |
| 376 | 364 | // add chart to the array |
| 377 | 365 | $charts[ 'visualizer-' . $chart->ID ] = array( |
| 378 | 366 | 'id' => $chart->ID, |
| 379 | 367 | 'type' => $type, |