Make WordPress Core

Opened 4 years ago

Closed 4 years 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's profile jontyravi Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: normal Version: 5.5
Component: Media Keywords: has-patch
Focuses: docs Cc:


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 4 years ago.

Download all attachments as: .zip

Change History (4)

4 years ago

#1 @jontyravi
4 years ago

Keywords has-patch added

#2 @SergeyBiryukov
4 years 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
4 years 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.