Solutions to WordPress 3.0.5 bug: images in comments are not showed
After upgrading to WordPress 3.0.5 you will notice a bug, it is impossible to insert images in the comments, the tags img src are automatically cut out by WP core source. You will be able to see the complete code while editing a comment, but if it is published it won’t show up.
WordPress has expressed that the error will be fixed in WP 3.1. But while the new version is still not out, you can apply any of the following solutions:
Solution 1
In 3.0.5 file wp-includes/default-filters.php line 35:
foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {
Just remove:
, ‘comment_text’
Then it will work fine. (don’t forget to delete that comma)
Solution 2
Add this code in the theme’s functions.php:
add_action('init','workaround');
function workaround() {
remove_filter( 'comment_text', 'wp_kses_data' );
}
Solution 3
Update Akismet to 2.5.3 (it contains the fix).
Solution 4
Install the plugin: hotfix
This plugin provides fixes for selected WordPress bugs, so you don’t have to wait for the next WordPress core release. This does not mean you can stop updating WordPress! It just means that you’ll get a few selected fixes more quickly.
Follow us in Twitter @aeromentaln and Facebook
Post author: Daniel Semper