TinyMCE inserts spans with font-styles atributes


As noted in bug report #17154, TinyMCE implementation in WordPress version 3.5.1 (current version at time of writing this post) have some issues with styling list elements, adding <span> tags and additional font-style attributes. This seem to mainly affect Chrome browser users.


Until WordPress core developers come up with a solution to the problem, this code snippet added to your functions.php file may help you a bit

Continue reading…

Email Address Encoder

What is email address harvesting?

From wikipedia.org: “Email harvesting is the process of obtaining lists of email addresses using various methods for use in bulk email or other purposes usually grouped as spam.” – click here to read more about the problem.

What is the Email Address Encoder for?

The purpose of this tool is to allow you to encode a regular email address into an encoded one so it’s more difficult to email collection bots to read your email.
It’s only one of the ways you may take to prevent some less-smart bots from harvesting your email address.

Continue reading…

Lighttpd WordPress rewrite


Lighttpd server configuration for WordPress site with clean URLs.

Lighttpd WordPress rewrite example

# mod_rewrite needs to be enabled. You can do this by adding this line to your config.
server.modules += ("mod_rewrite")

url.rewrite-once = (
        "^/(wp-admin|wp-includes|wp-content)/(.*)" => "$0",
        "^/wp-login.php\?action=logout\&_wpnonce=([a-zA-Z0-9]+)$" => "/wp-login.php?action=logout&_wpnonce=$1",
        "^/wp-login.php\?loggedout=true$"       =>      "/wp-login.php?loggedout=true",
        "^/(.*\.php)" => "$0",
        "^/(.*)$" => "/index.php/$1"

Get this gist from Github https://gist.github.com/x500/5416619

Lighttpd multi-site WordPress rewrite example

Continue reading…

WordPress migration to a new host – BASH script


The purpose of this WordPress migration script is to allow user to update all database references for a WordPress website.┬áThis script connects to your WordPress database and replaces your old site’s url with the new one. It updates the posts, postmeta and options tables.┬áMake a full backup of your database before using this script.


WordPress migration script

Continue reading…