Skip to content

Commit f584262

Browse files
committed
Fix rendering imported event URLs
1 parent 1369656 commit f584262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/icalimport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function sunflower_icalimport( $url = false, $auto_categories = false ) {
102102
$post_content = sprintf( '<!-- wp:paragraph --><p>%s</p><!-- /wp:paragraph -->', nl2br( (string) $event->DESCRIPTION ) ); // phpcs:ignore
103103

104104
if ( isset( $event->URL ) && filter_var( (string) $event->URL, FILTER_VALIDATE_URL ) ) { // phpcs:ignore
105-
$post_content .= sprintf( '<!-- wp:paragraph --><p>%1$s: <a href="%1$s" target="_blank">%1$s</a></p><!-- /wp:paragraph -->', __( 'More Information', 'sunflower' ), (string) $event->URL ); // phpcs:ignore
105+
$post_content .= sprintf( '<!-- wp:paragraph --><p><a href="%1$s" title="%2$s" target="_blank">%3$s&nbsp;<i class="fa-solid fa-up-right-from-square"></i></a></p><!-- /wp:paragraph -->', (string) $event->URL, __( 'Open link in a new tab', 'default' ), __( 'More Information', 'sunflower' ) ); // phpcs:ignore
106106
}
107107

108108
$post = array(

0 commit comments

Comments
 (0)