CRM-12499 WP & Joomla - add extends to classes