CRM-13897 - Upgrade script not runs under wordpress

http://issues.civicrm.org/jira/browse/CRM-13897