Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#41194 closed defect (bug) (fixed)

Document $post global in wp_post_preview_js()

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

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

Download all attachments as: .zip

Change History (6)

@avinapatel
9 years ago

Fixed the issue.

#1 @avinapatel
9 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
9 years ago

  • Component I18NPosts, Post Types
  • Milestone Awaiting Review4.9

#3 @SergeyBiryukov
9 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 40959:

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

Props avinapatel.
Fixes #41194.

@nileshdudakiya94
9 years ago

fixed issue #41194

#4 @SergeyBiryukov
9 years ago

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