After my upgrade last night, I began receiving an odd error everytime I attempted to post to the blog. I say “odd”, because once I looked at the code, I do not understand why I was not receiving it before. Essentially, anytime post.php is called, with Clean Trunks active the user should get an error on line 80 of clean-trunks.php for an undefined function call to len().
To fix this, open wp-content/plugins/clean-trunks/clean-trunks.php and edit line 80.
replace: if( len($words[0]) > $this
with: if( strlen($words[0]) > $this
I’ve submitted this to the author’s blog, and if this does not turn out to be the best fix, then I will revise this post — however, I am pretty sure that this is it. Among other things, it works again.
I’m an Open Source contributor now. It is a proud moment; at least until I am told by the plugin dev that I’m incorrect.
Post a Comment