[wp-trac] [WordPress Trac] #35915: Documentation of `get_preview_post_link` declares missing return variable type information

WordPress Trac noreply at wordpress.org
Tue Feb 23 08:26:18 UTC 2016


#35915: Documentation of `get_preview_post_link` declares missing return variable
type information
--------------------------+------------------------------
 Reporter:  chris_dev     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  trivial       |  Resolution:
 Keywords:  needs-patch   |     Focuses:  docs
--------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => needs-patch


Comment:

 It needs to be documented in which cases it returns `void`.

 Though I think it's weird it doesn't return an empty string or `false`.
 Perhaps changing that is the better solution.

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


More information about the wp-trac mailing list