[wp-trac] [WordPress Trac] #62720: Incomplete phpdoc typehints for get_the_post_thumbnail_url()

WordPress Trac noreply at wordpress.org
Fri Dec 20 09:28:59 UTC 2024


#62720: Incomplete phpdoc typehints for get_the_post_thumbnail_url()
-------------------------+-----------------------------
 Reporter:  apermo       |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  4.4
 Severity:  normal       |   Keywords:
  Focuses:  docs         |
-------------------------+-----------------------------
 While digging through code, we've realized that the PHPDoc for
 `get_the_post_thumbnail_url()` is incomplete. The param `$post` can be
 null as well, this is missing in the PHPDoc block.

 While fixing this, we will as well check the type hints throughout `post-
 thumbnail-template.php`.

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


More information about the wp-trac mailing list