Since this change makes sure a slash gets added before _and_ after, wouldn't it make sense to use `trim($theme_path, '/')` instead?