[wp-trac] [WordPress Trac] #40516: Twenty Seventeen: Remove uneccessary return statement in twentyseventeen_edit_link()

WordPress Trac noreply at wordpress.org
Fri Apr 21 16:09:54 UTC 2017


#40516: Twenty Seventeen: Remove uneccessary return statement in
twentyseventeen_edit_link()
---------------------------+-----------------------
 Reporter:  truongwp       |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  4.7.5
Component:  Bundled Theme  |     Version:  4.7
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  template
---------------------------+-----------------------
Changes (by afercia):

 * keywords:   => has-patch
 * version:  trunk => 4.7
 * type:  enhancement => defect (bug)
 * milestone:  Awaiting Review => 4.7.5


Comment:

 Yep, actually `edit_post_link()` echoes the link and doesn't return
 anything so the implementation here doesn't look correct to me. Thanks
 @truongwp !

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


More information about the wp-trac mailing list