Replaced deprecated code related to text direction class inside context.php.

@justintadlock Please review and merge the pull request.