Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#51308 closed defect (bug) (fixed)

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

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

Description

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 6 years ago.
Patch added

Download all attachments as: .zip

Change History (4)

@anonymized_18274256
6 years ago

Patch added

#1 @anonymized_18274256
6 years ago

Keywords has-patch added

#2 @SergeyBiryukov
6 years ago

  • Component CommentsRevisions
  • Milestone Awaiting Review5.6
  • Owner set to SergeyBiryukov
  • Status newreviewing

#3 @SergeyBiryukov
6 years ago

  • Resolutionfixed
  • Status reviewingclosed

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.