Erroneous line break causing major problems
-
Hi,
Just to let you know when I installed this (very useful!) plugin it broke a load functionality on our site.
We found the problem was an additional line break on your code.
Your existing code:
—————-
<?php
/*
Plugin Name: Soundcloud oEmbed
Plugin URI: https://www.brandonshutter.com
Description: Enables the ability to paste a SoundCloud URL in it’s own line and for oEmbed to make it play.
Version: 1.0
Author: Brandon Shutter
Author URI: https://www.brandonshutter.com
*/
?><?php
function add_oembed_soundcloud(){
wp_oembed_add_provider( ‘https://soundcloud.com/*’, ‘https://soundcloud.com/oembed’ );
}
add_action(‘init’,’add_oembed_soundcloud’);?>
We simply took out the extra line break (see below)
—————-
<?php
/*
Plugin Name: Soundcloud oEmbed
Plugin URI: https://www.brandonshutter.com
Description: Enables the ability to paste a SoundCloud URL in it’s own line and for oEmbed to make it play.
Version: 1.0
Author: Brandon Shutter
Author URI: https://www.brandonshutter.com
*/function add_oembed_soundcloud(){
wp_oembed_add_provider( ‘https://soundcloud.com/*’, ‘https://soundcloud.com/oembed’ );
}
add_action(‘init’,’add_oembed_soundcloud’);?>
————–to fix things. I’m sure other people may have problems with this – basically it broke a file serving problems as added an extra byte to the start of the served documents that caused corrupt files.
Please update your plugin with the removed line!
Alex
- The topic ‘Erroneous line break causing major problems’ is closed to new replies.