Skip to content

Commit

Permalink
Update my-calendar-event-editor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 6, 2025
1 parent 3bed33f commit 8e975d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-event-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3123,8 +3123,8 @@ function mc_controls( $mode, $has_data, $event, $position = 'header' ) {
if ( mc_event_published( $event ) ) {
$controls['view'] = "<span class='dashicons dashicons-laptop' aria-hidden='true'></span><a href='" . esc_url( $view_url ) . "' class='view'>" . __( 'View', 'my-calendar' ) . '</a>';
} 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,
);
Expand Down

0 comments on commit 8e975d6

Please sign in to comment.