diff --git a/src/my-calendar-event-editor.php b/src/my-calendar-event-editor.php index ddb5675a..6c68a243 100644 --- a/src/my-calendar-event-editor.php +++ b/src/my-calendar-event-editor.php @@ -3123,8 +3123,8 @@ function mc_controls( $mode, $has_data, $event, $position = 'header' ) { if ( mc_event_published( $event ) ) { $controls['view'] = "" . __( 'View', 'my-calendar' ) . ''; } elseif ( current_user_can( 'mc_manage_events' ) ) { - $nonce = wp_create_nonce( 'mcpreviewnonce' ); - $args = array( + $nonce = wp_create_nonce( 'mcpreviewnonce' ); + $args = array( 'preview' => 'true', 'mcpreviewnonce' => $nonce, );