Making WordPress.org

Opened 21 months ago

Last modified 21 months ago

#6893 new defect (bug)

Function reference docs parser or template show parameter twice

Reported by: tobiasbg's profile TobiasBg Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

Originally reported by @mario98 at https://core.trac.wordpress.org/ticket/57936 :

https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/#parameters

the default value of the parameter $size has been written twice. The one declaration should be deleted.

The function definition in WP Core is fine, so this seems to be added by the docs parser or template.

Change History (1)

#1 @dd32
21 months ago

  • Component changed from HelpHub to Developer Hub

This seems to be a bug in the PHPDoc parser: https://github.com/WordPress/phpdoc-parser as the Default '....'. isn't being removed from the end of the description when it extracted it into the parameters default field.

I think I've seen this reported before somewhere, but I couldn't find an issue for it.

Sidenote: The developer environment can be run locally with https://github.com/WordPress/wporg-developer

Note: See TracTickets for help on using tickets.