WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#51309 closed defect (bug) (fixed)

@global $wpdb is used but not define in documentation of this function wp_delete_attachment_files()

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

Description

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

Attachments (1)

51309.patch (505 bytes) - added by jontyravi 3 months ago.

Download all attachments as: .zip

Change History (4)

@jontyravi
3 months ago

#1 @jontyravi
3 months ago

Keywords has-patch added

#2 @SergeyBiryukov
3 months ago

  • Component changed from Comments to Media
  • 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 48976:

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

Props jontyravi.
Fixes #51309.

Note: See TracTickets for help on using tickets.