Rosio Pavoris

Updated~

I’ve updated the blog theme to the latest version. Not as easy as it sounds, since I’ve edited most files myself for great awesome.
Beccary fixed some bugs I had already found and fixed myself, and one that I got used to so I unfixed it (a class=”commentmeta” that should have been class=”postmeta”, but which I like better as class=”commentmeta”), and left in a bug I’d found and fixed before, which I had to refix (permalinks on the index page; she forgot to properly close a tag).
Basically, the changes are that there are optional CSS classes for images now (which I’d meant to write myself but hadn’t gotten around to), and some extra things at the bottom of the individual post pages (some of which I removed because it was too cluttery).

If you notice any other changes, let me know, because that means I screwed up somewhere.
(You might ask why I updated everything, then, if I just want most things to stay the same. In doing so, you would demonstrate that you do not understand how my mind works.)

Also, I rewrote the simple disemvoweler plugin on the WordPress wiki to suit my needs better. It just retains the [troll] thing from the modification there, since disemvoweling by IP isn’t something I’m very likely to do.
Here’s the code, if you want it. Simple desu~

<?php

/*
Plugin Name: Better Disemvoweler
Plugin URI: http://wordpress.org/#
Description: Use [troll] to disemvowel comments.
Version: 0.0
Author: Some Guy
*/

function disemvowel($content) {
	if (ereg("^\\[troll\\]", $content)) {
		$content = substr($content, 7);
		$content = preg_replace("/[aeiou]/i", '', $content);
	}
	return $content;
}

add_filter('comment_text', 'disemvowel');

?>

Post a Comment

RSS feed for comments on this post · TrackBack URL