Adding WordPress 4.1 compatibility.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>