Opened 5 years ago
Closed 5 years ago
#52839 closed defect (bug) (fixed)
Docs: indentation error on `wp_term_query->construct` method parameters
| Reported by: | audrasjb | Owned by: | davidbaumwald |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
Description
There is a minor indentation issue in some wp_term_query->construct method DocBlock params.
The issue appears on the fields param. Indeed, it's better to avoid dashes when items should not be presented as a bullet list. Better to replace - with * as per DocBlock formatting rules.
https://developer.wordpress.org/reference/classes/wp_term_query/__construct/
Props @whyisjake for pointing this out in DevHub user notes.
Attachments (2)
Change History (7)
#3
@
5 years ago
- Keywords commit added
Just noting that it's possible that replacing - with * as in [50538] may not actually fix the issue, and it could be a bug not in core, but in the DevHub documentation parser itself, as there are a few other instances where the - characters are converted to second-level list items as expected.
I don't have a quick way to test that at the moment, so I guess we'll have to wait and see after 5.8 :) 52839.diff should be good to go in the meantime.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Docs: Correct formatting for the description of some
wp_term_query->constructmethod parameters