Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#51308 closed defect (bug) (fixed)

@global $wpdb is not present in function wp_get_post_autosave()

Reported by: anonymized_18274256's profile anonymized_18274256 Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: normal Version: 5.5
Component: Revisions Keywords: has-patch
Focuses: docs Cc:


global $wpdb is used in wp_get_post_autosave() this function but it is not mentioned in the documentation of the function.

Attachments (1)

51308.patch (487 bytes) - added by anonymized_18274256 4 years ago.
Patch added

Download all attachments as: .zip

Change History (4)

4 years ago

Patch added

#1 @anonymized_18274256
4 years ago

Keywords has-patch added

#2 @SergeyBiryukov
4 years ago

  • Component changed from Comments to Revisions
  • Milestone changed from Awaiting Review to 5.6
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @SergeyBiryukov
4 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 48975:

Docs: Document the usage of $wpdb global in wp_get_post_autosave().

Follow-up to [48422].

Props ravivaddweb.
Fixes #51308. See #34560.

Note: See TracTickets for help on using tickets.