Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#35683 closed enhancement (fixed)

Fix second param in get_post_field function

Reported by: sebastian.pisula Owned by: boonebgorges
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:


I think that second params -> post <- should be Optional.

Attachments (1)

35683.patch (1.2 KB) - added by sebastian.pisula 6 years ago.

Download all attachments as: .zip

Change History (4)

#1 @swissspidy
6 years ago

  • Keywords has-patch added

#2 @boonebgorges
6 years ago

  • Component changed from General to Posts, Post Types
  • Milestone changed from Awaiting Review to 4.5

#3 @boonebgorges
6 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 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.

Note: See TracTickets for help on using tickets.