#5304 closed defect (bug) (fixed)
Incorrect code tags in @param block for WP_Term_Query::__construct()
Reported by: | ocean90 | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | |
Cc: |
Description
See https://developer.wordpress.org/reference/classes/wp_term_query/__construct/#parameters
The documentation for the $fields
parameter is broken due to a missing closing code
tag. This seems to be related to #2900 because after removing the fix_param_description_parsedown_bug
filter the code
tags are correct for this case.
While we're here, I'm wondering if could render the list as an actual list.
Related: [WP46652], #WP44305
Attachments (8)
Change History (12)
#1
@
4 years ago
5304.diff applies fix_param_hash_formatting()
on each description in a hash notation. This seems to work so far, see after.png.
Unfortunally it keeps breaking the code tags around the auto-linked WP_Meta_Query
, see after-broken-autolink.png. The HTML is:
<li><b>'meta_query'</b><br /><i><span class='type'>(array)</span></i> Optional. Meta query clauses to limit retrieved terms by. See</code><a href="https://developer.wordpress.org/reference/classes/wp_meta_query/">WP_Meta_Query</a><code>. </li>
@coffee2code Do you have some other ideas to work around the issue?
descriptionlike or meta_query have incorrect code tags