WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#41194 closed defect (bug) (fixed)

Document $post global in wp_post_preview_js()

Reported by: avinapatel Owned by: SergeyBiryukov
Milestone: 4.9 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:

Description

global $post is used in wp_post_preview_js() function but it is not mentioned in the documentation of the function.

Attachments (2)

41194.patch (376 bytes) - added by avinapatel 3 years ago.
Fixed the issue.
41194.1.patch (416 bytes) - added by nileshdudakiya94 3 years ago.
fixed issue #41194

Download all attachments as: .zip

Change History (6)

@avinapatel
3 years ago

Fixed the issue.

#1 @avinapatel
3 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
3 years ago

  • Component changed from I18N to Posts, Post Types
  • Milestone changed from Awaiting Review to 4.9

#3 @SergeyBiryukov
3 years ago

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

In 40959:

Docs: Add a @global entry for $post variable in wp_post_preview_js().

Props avinapatel.
Fixes #41194.

@nileshdudakiya94
3 years ago

fixed issue #41194

#4 @SergeyBiryukov
3 years ago

  • Summary changed from Needs documentation improvement for wp_post_preview_js(). to Document $post global in wp_post_preview_js()
Note: See TracTickets for help on using tickets.