[wp-trac] [WordPress Trac] #35683: Fix second param in get_post_field function

WordPress Trac noreply at wordpress.org
Fri Feb 5 18:57:11 UTC 2016

#35683: Fix second param in get_post_field function
 Reporter:  sebastian.pisula   |       Owner:  boonebgorges
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.5
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"36481"]:
 #!CommitTicketReference repository="" revision="36481"
 Make the `$post` param optional in `get_post_field()`.

 When `$post` is `null`, the current post object will be returned.

 Props sebastian.pisula.
 Fixes #35683.

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

More information about the wp-trac mailing list