Fixes XSS in misc.php
Fixes compatibility issue with some plugins
Adding missing break in promotions task