Return the content so everything doesn't go blank from [7491]. See #6537. Hat tip: robmil.
git-svn-id: https://develop.svn.wordpress.org/trunk@7492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cbfb5d78b5
commit
58714b0c30
@ -504,7 +504,7 @@ function prepend_attachment($content) {
|
||||
global $post;
|
||||
|
||||
if ( empty($post->post_type) || $post->post_type != 'attachment' )
|
||||
return;
|
||||
return $content;
|
||||
|
||||
$p = '<p class="attachment">';
|
||||
// show the medium sized image representation of the attachment if available, and link to the raw file
|
||||
|
Loading…
Reference in New Issue
Block a user