[wp-trac] [WordPress Trac] #58254: HTML API: Fix ordering issue in docblock that's breaking Developer Resources

WordPress Trac noreply at wordpress.org
Thu May 4 10:58:09 UTC 2023


#58254: HTML API: Fix ordering issue in docblock that's breaking Developer
Resources
--------------------------+-----------------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTML API      |    Version:  6.2
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 In this patch we're re-ordering the `@see` tag in the docblock comment for
 `WP_HTML_Tag_Processor::get_attribute_names_with_prefix`. Previously the
 rendering in Developer Resources was broken, whereby it merged the link in
 the `@see` tag with the example code.

 https://developer.wordpress.org/reference/classes/wp_html_tag_processor/get_attribute_names_with_prefix/

 Now, in this patch, the `@see` tag has been moved below the code example
 so that the example is properly extracted.

 Additionally the example code for `WP_HTML_Tag_Processor::get_tag` has
 been updated to show lowercase tag names in the input HTML so that it
 doesn't convey the wrong impression that the uppercase output from
 `get_tag()` depends on the case of the input HTML.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58254>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list