| @@ -485,8 +485,10 @@ | ||
| 485 | 485 | * @access public |
| 486 | 486 | */ |
| 487 | 487 | public function renderChartPages() { |
| 488 | 488 | defined( 'IFRAME_REQUEST' ) || define( 'IFRAME_REQUEST', 1 ); |
| 489 | + // Set current screen for the render chart. | |
| 490 | + set_current_screen( 'visualizer_render_chart' ); | |
| 489 | 491 | // check chart, if chart not exists, will create new one and redirects to the same page with proper chart id |
| 490 | 492 | $chart_id = isset( $_GET['chart'] ) ? filter_var( $_GET['chart'], FILTER_VALIDATE_INT ) : ''; |
| 491 | 493 | if ( ! $chart_id || ! ( $chart = get_post( $chart_id ) ) || $chart->post_type !== Visualizer_Plugin::CPT_VISUALIZER ) { |
| 492 | 494 | $this->deleteOldCharts(); |