WordPress.org

Make WordPress Core

Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#24602 closed defect (bug) (fixed)

wp_get_single_post() should not use 'edit' context for get_post()

Reported by: nacin Owned by: nacin
Milestone: 3.5.2 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

[21651] deprecated get_post_to_edit() and wp_get_single_post() at the same time. In the process, wp_get_single_post()'s call to get_post() was accidentally changed to use the 'edit' context, a copy-paste from get_post_to_edit()'s deprecation.

Change History (2)

comment:1 @nacin21 months ago

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

In 24436:

Fix context for get_post() in the deprecated wp_get_single_post(). fixes #24602.

comment:2 @nacin21 months ago

In 24437:

Fix context for get_post() in the deprecated wp_get_single_post(). fixes #24602.

Merges [24436] to the 3.5 branch.

Note: See TracTickets for help on using tickets.