Make WordPress Core

#57936 closed defect (bug) (reported-upstream)

Тwice written default value of the parameter $size of the get_the_post_thumbnail() function

Reported by: mario98's profile mario98 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Post Thumbnails Keywords:
Focuses: docs Cc:

Description

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.

Change History (4)

#1 @costdev
23 months ago

  • Component changed from General to Post Thumbnails
  • Version trunk deleted

#2 follow-up: @TobiasBg
23 months ago

Thanks for spotting this, @mario98!

In the code, this is only appearing once, from what I can see, so this might be an issue in the parser that is used on developer.wordpress.org.
This might therefore be more suitable for the meta trac.

This ticket was mentioned in Slack in #docs by tobiasbg. View the logs.


23 months ago

#4 in reply to: ↑ 2 @TobiasBg
23 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

I have now opened a ticket on the Meta Trac, as this is an issue with the wordpress.org systems and not actual WordPress code: https://meta.trac.wordpress.org/ticket/6893

Note: See TracTickets for help on using tickets.