You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid hard coding to modify content. Instead, use function parameters, filters and action hooks where appropriate.
This should be an error.
By using a hardcoded a hard coded menu name it would require the menu to have the exactly same name which does not make sense for a publically released theme.
I think you are mistaken. A theme names its menu locations, not the user. They should not have to be in variables. The menu location is not "content" as mentioned in that rule you quoted.
Rule type:
Error / Warning
Rule:
The rule should be clarified and added to the handbook before any action is taken on this issue.
Ref: https://make.wordpress.org/themes/handbook/review/required/theme-check-plugin/#info
Theme check file covering this rule:
Unknown
Loosely related: WordPress/theme-check#142
Decision needed:
To do:
The text was updated successfully, but these errors were encountered: