Poring https://github.com/joomla/joomla-cms/pull/3915 changes