[wp-trac] [WordPress Trac] #45597: Function does not return a value

WordPress Trac noreply at wordpress.org
Wed Jan 16 05:53:30 UTC 2019


#45597: Function does not return a value
------------------------------------+-----------------------------
 Reporter:  subrataemfluence        |       Owner:  pento
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  5.1
Component:  Users                   |     Version:  5.0
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |     Focuses:  docs, template
------------------------------------+-----------------------------
Changes (by pento):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44616" 44616]:
 {{{
 #!CommitTicketReference repository="" revision="44616"
 Templates: Fix the return value of `get_the_author_posts_link()`.

 When the `$authordata` global isn't defined, return an empty string,
 rather than `void`.

 Props mukesh27, subrataemfluence.
 Fixes #45597.
 }}}

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


More information about the wp-trac mailing list