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
{{ message }}
Repository navigation
Avoid the generic terminology used for term and meta subcommand descriptions #166
The descriptions for the second-level subcommands of wp post|user term|meta use generic "object" terminology from the method docblocks in the abstract CommandWithTerms and CommandWithMeta classes. For example:
wp post term --help correctly says "Adds, updates, removes, and lists post terms."
wp post term list --help uses the generic phrase "List all terms associated with an object."
Generic terminology is used for all four term and meta subcommands:
This is because most of the code is in a shared abstract class, so the docblocks only exist once for all "objects".
I agree that it would be preferable to get rid of the generic terms, though. I'll have a look to see how best to achieve that without copying the logic around.
Activity
schlessera commentedon Apr 19, 2018
This is because most of the code is in a shared abstract class, so the docblocks only exist once for all "objects".
I agree that it would be preferable to get rid of the generic terms, though. I'll have a look to see how best to achieve that without copying the logic around.
swissspidy commentedon Jan 20, 2026
#561 did try to copy all the docblocks, but I don't really like it.
What if we add some (Mustache) template placeholders in the docblock and then the framework would replace them upon loading?
swissspidy commentedon Mar 27, 2026
Would be nice, but also a bit overkill I suppose. Let's revisit this again in the future if desired.