From 54fd2f7a80adcba313a5c3e8dcd930b842f5b7e8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Sep 2020 13:41:33 +0000 Subject: [PATCH] Docs: Document the usage of `$wpdb` global in `wp_delete_attachment_files()`. Props jontyravi. Fixes #51309. git-svn-id: https://develop.svn.wordpress.org/trunk@48976 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index c0e5e1fc70..1088d4ffb5 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -5855,6 +5855,8 @@ function wp_delete_attachment( $post_id, $force_delete = false ) { * * @since 4.9.7 * + * @global wpdb $wpdb WordPress database abstraction object. + * * @param int $post_id Attachment ID. * @param array $meta The attachment's meta data. * @param array $backup_sizes The meta data for the attachment's backup images.