WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#28729 closed enhancement (fixed)

Pass $post object to use of preview_post_link

Reported by: danielbachhuber Owned by:
Milestone: 4.0 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: administration Cc:

Description

It will make the filter more useful.

Attachments (1)

28729.1.diff (4.0 KB) - added by danielbachhuber 6 years ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
6 years ago

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

In 28969:

Pass $post object to 'preview_post_link' filter.

props danielbachhuber.
fixes #28729.

#2 @DrewAPicture
6 years ago

In 28979:

Note in the hook docs for preview_post_link that the $post parameter was added.

See #28729.

Note: See TracTickets for help on using tickets.