[wp-trac] [WordPress Trac] #50519: The return doc of wp_link_pages() need to mention $echo

WordPress Trac noreply at wordpress.org
Thu Jul 2 05:07:08 UTC 2020


#50519: The return doc of wp_link_pages() need to mention $echo
-------------------------------+------------------------------
 Reporter:  stevenlinx         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  minor              |  Resolution:  invalid
 Keywords:  has-patch close    |     Focuses:  docs
-------------------------------+------------------------------
Changes (by stevenlinx):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Yikes! You were right. Thank you for the comment.

 The patch was based on the Return values section of Codex, which seemed to
 be based on an older version of the code.

 "If $echo is set to true (default), returns NULL and echos the content. If
 $echo is set to false, returns formatted output in HTML."

 It seems the older version of the code returns NULL, but have changed at
 some point to not return NULL at all.

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


More information about the wp-trac mailing list