Making WordPress.org

Opened 4 years ago

Closed 4 years ago

#3212 closed defect (fixed)

@link in fetch_feed() isn't generated correctly

Reported by: birgire Owned by: coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords:


This doc part [src] for the fetch_feed() function:

* @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged
* using SimplePie's multifeed feature.
* See also {@link ​http://simplepie.org/wiki/faq/typical_multifeed_gotchas}

generates encoded HTML link

See also <a href="https://developer.wordpress.org/reference/functions/%e2%80%8bhttpsimplepie-orgwikifaqtypical_multifeed_gotchas">​&lt;a href="http://simplepie.org/wiki/faq/typical_multifeed_gotchas"&gt;http://simplepie.org/wiki/faq/typical_multifeed_gotchas&lt;/a&gt;</a>



It looks like it treated as @see instead.

I wonder if the See part, in the same line as @link, is confusing the parsing here:


Change History (2)

#1 @coffee2code
4 years ago

  • Owner set to coffee2code
  • Status changed from new to accepted

#2 @coffee2code
4 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Thanks for the report @birgire!

This issue has been fixed in the Code Reference. It actually stems from a bug I just reported to WP core. A zero width character precedes the URL in the @link for the parameter description, which interferes with how the link was being handled. I removed the character locally for DevHub, and will make a note to manually do so for each future parsing until my patch for core is applied.

Note: See TracTickets for help on using tickets.