Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#41194 closed defect (bug) (fixed)

Document $post global in wp_post_preview_js()

Reported by: avinapatel's profile avinapatel Owned by: sergeybiryukov's profile 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 8 years ago.
Fixed the issue.
41194.1.patch (416 bytes) - added by nileshdudakiya94 8 years ago.
fixed issue #41194

Download all attachments as: .zip

Change History (6)

@avinapatel
8 years ago

Fixed the issue.

#1 @avinapatel
8 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 years ago

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

#3 @SergeyBiryukov
8 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
8 years ago

fixed issue #41194

#4 @SergeyBiryukov
8 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.