fixing wordpress v4.0 error