[wp-trac] [WordPress Trac] #53878: Return type not matched in PHPDoc - Bundled Themes

WordPress Trac noreply at wordpress.org
Thu Aug 5 07:19:15 UTC 2021


#53878: Return type not matched in PHPDoc - Bundled Themes
------------------------------------+-------------------------------------
 Reporter:  ankitmaru               |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Bundled Theme           |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  docs, coding-standards
------------------------------------+-------------------------------------
Changes (by mukesh27):

 * keywords:  has-patch => has-patch dev-feedback


Comment:

 Hi, Thanks for the ticket and patch!

 Each bundle theme has different return value docs for the same filter so I
 think we have to set a unique document for in the filter.

 **Twenty Sixteen** - https://github.com/WordPress/WordPress/blob/master
 /wp-content/themes/twentysixteen/functions.php#L565
 **Twenty Seventeen** - https://github.com/WordPress/WordPress/blob/master
 /wp-content/themes/twentyseventeen/functions.php#L579

 {{{
 * @return array The filtered attributes for the image markup.
 }}}

 **Twenty Nineteen** - https://github.com/WordPress/WordPress/blob/master
 /wp-content/themes/twentynineteen/inc/template-functions.php#L104

 {{{
 * @return string Value for use in post thumbnail 'sizes' attribute.
 }}}

 **Twenty Twenty-One** - https://github.com/WordPress/WordPress/blob/master
 /wp-content/themes/twentytwentyone/inc/template-functions.php#L440

 {{{
 * @return array
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53878#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list