0 ) { $event = ThreeCal_Event::get( $event_id ); if ( ! $event ) { wp_die( esc_html__( 'Event not found.', '3task-calendar' ) ); } } // A date from a post is edited in the post, there is only one source. $threecal_from_post = ThreeCal_Post_Dates::post_of( $event ); if ( $threecal_from_post && get_post( $threecal_from_post ) ) { echo '
'; /* translators: %s: title of the post */ echo esc_html( sprintf( __( 'This date comes from the post "%s" and is edited there. Changes made here would be overwritten.', '3task-calendar' ), get_the_title( $threecal_from_post ) ) ); $threecal_edit_link = get_edit_post_link( $threecal_from_post, 'raw' ); if ( $threecal_edit_link ) { echo ' ' . esc_html__( 'Edit the post', '3task-calendar' ) . ''; } echo '