[wp-trac] [WordPress Trac] #47909: Soundcloud shortcode fails when SSL is enabled
WordPress Trac
noreply at wordpress.org
Wed Aug 21 06:37:14 UTC 2019
#47909: Soundcloud shortcode fails when SSL is enabled
--------------------------+-----------------------------
Reporter: dst | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The Soundcloud embedded player doesn't load properly, if WordPress /
Apache uses SSL.
This is fixable by a minor change in the player code. Please see attached
diff.
{{{
@@ -167,7 +167,7 @@
function soundcloud_iframe_widget($options) {
// Build URL
- $url = 'https://w.soundcloud.com/player/?' .
http_build_query($options['params']);
+ $url = 'https://w.soundcloud.com/player?' .
http_build_query($options['params']);
// Set default width if not defined
$width = isset($options['width']) && $options['width'] !== 0 ?
$options['width'] : '100%';
// Set default height if not defined
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47909>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list