Why does my staging of Customer Portal keep failing after I commented out some lines of code?
Customer Portal v3.x
A Customer Portal developer wants to remove some fields from the login/AccountDropdown widget in the standard.php template. They comment some line out of the widget call, such as the social display name, like this:
Now that template cannot be staged.
Do not use HTML comments nested within a widget call.
While it is up to you how to back up and version your code in the development process, this particular strategy will not work. You could make a copy of the existing call to save it, and if you used a PHP comment for that backup it wouldn't be loaded on the end-user pages. Or you could use git, etc. to entirely avoid having lines commented out in your production code.