Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 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:


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 7 years ago.
Fixed the issue.
41194.1.patch (416 bytes) - added by nileshdudakiya94 7 years ago.
fixed issue #41194

Download all attachments as: .zip

Change History (6)

7 years ago

Fixed the issue.

#1 @avinapatel
7 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
7 years ago

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

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

7 years ago

fixed issue #41194

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