WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#51308 closed defect (bug) (fixed)

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

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

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 ravivaddweb 3 months ago.
Patch added

Download all attachments as: .zip

Change History (4)

@ravivaddweb
3 months ago

Patch added

#1 @ravivaddweb
3 months ago

Keywords has-patch added

#2 @SergeyBiryukov
3 months 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
3 months 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.