We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bfb9e commit aff465fCopy full SHA for aff465f
extensions/blocks/podcast-player/edit.js
@@ -134,13 +134,9 @@ const PodcastPlayerEdit = ( {
134
// "http" to any entry before attempting validation.
135
const prependedURL = prependHTTP( editedUrl );
136
137
- const isValidURL = isURL( prependedURL );
138
-
139
- if ( ! isValidURL ) {
+ if ( ! isURL( prependedURL ) ) {
140
createErrorNotice(
141
- ! isValidURL
142
- ? __( "Your podcast couldn't be embedded. Please double check your URL.", 'jetpack' )
143
- : ''
+ __( "Your podcast couldn't be embedded. Please double check your URL.", 'jetpack' )
144
);
145
return;
146
}
0 commit comments