[wp-trac] [WordPress Trac] #50020: WP_Theme get_post_templates incorrect @return docblock line?

WordPress Trac noreply at wordpress.org
Tue Apr 28 15:00:43 UTC 2020


#50020: WP_Theme get_post_templates incorrect @return docblock line?
---------------------------------+-----------------------------
 Reporter:  salvatore.formisano  |       Owner:  SergeyBiryukov
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  5.5
Component:  Themes               |     Version:
 Severity:  trivial              |  Resolution:  fixed
 Keywords:  has-patch            |     Focuses:  docs
---------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47631" 47631]:
 {{{
 #!CommitTicketReference repository="" revision="47631"
 Docs: Correct `@return` type for `WP_Theme::get_post_templates()`.

 The method returns an array of strings, not a single string.

 Props mayankmajeji, salvatore.formisano.
 Fixes #50020.
 }}}

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


More information about the wp-trac mailing list