Updated Joomla function and Wordpress function