From a1af86e0013b4d3250b4a52087be8f95ecc8c4ff Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 30 Nov 2016 23:19:14 +0000 Subject: [PATCH] Docs: Document the usage of the global `$wpdb` in `_filter_query_attachment_filenames()`. Props mt8.biz. Fixes #38973. git-svn-id: https://develop.svn.wordpress.org/trunk@39390 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 9505227fb5..ab50c27d94 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1160,6 +1160,8 @@ function wp_edit_attachments_query_vars( $q = false ) { * @since 4.7.0 * @access private * + * @global wpdb $wpdb WordPress database abstraction object. + * * @param array $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, * DISTINCT, fields (SELECT), and LIMITS clauses. * @return array The modified clauses.