I found a solution to this: one of my plugins was echoing an empty line.
The problem was that it looked like this:
<?php
/*
Plugin Name: Custom Links
etc.
*/
?>
<?php
class MyClassName
etc.
As you can see, there was a closing statement for php processor (?>) followed by an empty line and an opening statement <?php.
This empty line confused WordPress. Once I removed it, everything started working OK.
mmond, this is how I “solved” it:
$func = create_function(‘$content’, ‘return ‘.$param.’ . $content;’);
add_filter(“the_content”, $func);
However, $param needs to be properly escaped for this to work.
Thanks, that’s exactly what I was looking for!