diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/archiveorg.php')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/archiveorg.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/shortcodes/archiveorg.php b/plugins/jetpack/modules/shortcodes/archiveorg.php index 4a335b32..f3e0e2af 100644 --- a/plugins/jetpack/modules/shortcodes/archiveorg.php +++ b/plugins/jetpack/modules/shortcodes/archiveorg.php @@ -90,9 +90,11 @@ function jetpack_archiveorg_shortcode( $atts ) { $poster = ''; } - $url = esc_url( set_url_scheme( "https://archive.org/embed/{$id}{$autoplay}{$poster}" ) ); + $url = esc_url( "https://archive.org/embed/{$id}{$autoplay}{$poster}" ); - $html = "<div class='embed-archiveorg' style='text-align:center;'><iframe src='$url' width='$width' height='$height' style='border:0;' webkitallowfullscreen='true' mozallowfullscreen='true' allowfullscreen></iframe></div>"; + $title = esc_html__( 'Archive.org', 'jetpack' ); + + $html = "<div class='embed-archiveorg' style='text-align:center;'><iframe title='$title' src='$url' width='$width' height='$height' style='border:0;' webkitallowfullscreen='true' mozallowfullscreen='true' allowfullscreen></iframe></div>"; return $html; } |