October 2, 2009
I am using the ImageScaler plugin for WordPress on a project, and I like what it does, but it adds a non-standards-compliant attribute to images, such as:
<img class="" src="http://www.example.com/imagescaler/generated-image.jpg" alt="Example" width="258" height="234" imagescaler="http://www.example.com/imagescaler/original-image.jpg" />
To strip imagescaler’s imagescaler attribute, add the following into your functions.php file:
add_filter('the_content', 'strip_imagescaler');
function strip_imagescaler($content) {
$content = preg_replace('/imagescaler="(.*?)".?/s','', $content);
return $content;
}
Read the full article →
August 19, 2009
The Rich Text Tags plugin allows you to use the WYSIWYG TinyMCE text editor (the WordPress default editor) while editing Categories, Tags, and taxonomies (custom categorization created by the Yoast Simple Taxonomies plugin). Read more&hellip
Read the full article →
WordPress Comment Form 404 Error – Now Fixed!
December 9, 2009Disabling the Cookies for Comments plugin broke the comments form.
On the recommendation of Matt Cutts, I added the Cookies for Comments plugin to this blog, and also added their recommended .htaccess modifications:
RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$ RewriteRule ^wp-comments-post.php - [F,L]When I realized that Cookies for Comments was slowing down my blog considerably, I disabled the plugin, but did not think to remove the
.htaccessrewrite rule. The remaining.htaccessrules broke the comments on this blog (for two weeks now, could it be!?). Read more&hellip