Custom theme updater – random string in new theme name

The theme name is not related to the folder. The theme name comes from the header information inside the style.css file inside the theme. It’s quite possible that the update being downloaded is a different theme. That’s because of a loophole in the update system itself. The update is checked via the theme-slug instead of the theme name. Make sure the correct theme slug is being checked for and the update package on the server has the correct slug and theme name.