Jun 19 2010

WordPress 3.0 images disappear after upgrade

I updated WordPress on here to version 3.0 and all my internal images disappeared from the posts.  After a painful search I figured out WordPress was camel-casing “Wordpress” to “WordPress.” So my WordPress was installed by my hosting service as Wordpress NOT WordPress. So all pictures were now stored in a directory that WordPress couldn’t see.  Changing the upload location with the Admin, Misc area didn’t work either.

Well anyway, on to fixing this.  This bug (yes its a bug in case some idiot thinks this was helpful) is known and being address by the good folks that work on WordPress or should I say WordPress.    Should be fixed by their next update. In the mean time, there is a plug-in which disables camel-casing in WordPress.  In the Admin section, add new plug-in and search for

“remove-wordpress-to-wordpress-filter” then install. Or go here to FTP it. http://wordpress.org/extend/plugins/remove-wordpress-to-wordpress-filter/

This should restore your images once active.

Another possible solution is getting rid of the  “capital_P_dangit” function. Add this code to your functions.php file.

remove_filter('the_content','capital_P_dangit');
remove_filter('the_title','capital_P_dangit');
remove_filter('comment_text','capital_P_dangit');