Skip to content

Commit

Permalink
Update error string
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Apr 25, 2024
1 parent 3a45cb4 commit 4a3295e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/events/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function coblocks_render_coblocks_events_block( $attributes, $content ) {

// If externalCalendarUrl contains a localhost URL, return an error message.
if ( strpos( $attributes['externalCalendarUrl'], 'localhost' ) !== false || strpos( $attributes['externalCalendarUrl'], '127.0' ) !== false ) {
return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred, localhost URLs are not permitted.', 'coblocks' ) . '</div></div>';
return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred. localhost URLs are not permitted.', 'coblocks' ) . '</div></div>';
}

try {
Expand Down

0 comments on commit 4a3295e

Please sign in to comment.