CRM-13897 - Update script not runs under wordpress

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