Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#46503 closed enhancement (fixed)

Docs: Added description for global $post

Reported by: immeet94 Owned by: SergeyBiryukov
Priority: normal Milestone: 5.3
Component: Posts, Post Types Version:
Severity: normal Keywords: has-patch
Cc: Focuses: docs, coding-standards

Description

In many core files document of global $post id not added.

Attachments (2)

#46503.diff (3.3 KB ) - added by immeet94 8 years ago.
Patch
#46503.2.diff (2.2 KB ) - added by immeet94 8 years ago.
Please see this file for updated patch.

Download all attachments as: .zip

Change History (10)

@immeet94
8 years ago

Patch

@immeet94
8 years ago

Please see this file for updated patch.

This ticket was mentioned in Slack in #core by immeet94. View the logs.


7 years ago

#2 @SergeyBiryukov
7 years ago

  • Component GeneralPosts, Post Types
  • Owner set to SergeyBiryukov
  • Status newreviewing

This ticket was mentioned in Slack in #core by immeet94. View the logs.


7 years ago

#4 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review5.3

#5 @SergeyBiryukov
7 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 45742:

Docs: Add missing description for $post global.

Props immeet94.
Fixes #46503. See #47110.

#6 @SergeyBiryukov
7 years ago

In 45744:

Posts, Post Types: Revert unintended change from [45742].

See #46503.

#7 follow-up: @diddledani
7 years ago

@SergeyBiryukov in 45744 you reverted a change that was actually correct, though maybe not necessary for this issue. delete_option() expects 1 parameter but the reinstated call in 45744 passes 2 parameters. The correct usage is to drop the second parameter.

#8 in reply to: ↑ 7 @SergeyBiryukov
7 years ago

Replying to diddledan:

delete_option() expects 1 parameter but the reinstated call in 45744 passes 2 parameters.

Thanks! Yes, just wanted to handle that in #46850 :)

Note: See TracTickets for help on using tickets.