[wp-trac] [WordPress Trac] #40780: Update docblocks & parameters in wp-includes/link-template.php for post-related functions

WordPress Trac noreply at wordpress.org
Fri Jun 30 15:27:40 UTC 2017


#40780: Update docblocks & parameters in wp-includes/link-template.php for post-
related functions
-------------------------------+------------------------------
 Reporter:  GunGeekATX         |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.8
 Severity:  normal             |  Resolution:
 Keywords:  needs-refresh      |     Focuses:  docs
-------------------------------+------------------------------

Comment (by adamsilverstein):

 > In your change at line 267, you call `get_post_status` with a WP_Post
 object, but that function takes a post ID - maybe change to `$post->ID`?
 Also I want to make sure the $id isn't used elsewhere.

 Actually thats wrong :) I was looking at outdated docs! It should work as
 is.

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


More information about the wp-trac mailing list