From e2705a8718494e910704ebbe23eb1fb9b31f57ab Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 21 Jun 2016 22:21:55 +0000 Subject: [PATCH] Docs: Correct the `$request` parameter datatype in the hook doc for the `posts_request` filter. It's a string, not an array. Props coffee2code. Fixes #37142. git-svn-id: https://develop.svn.wordpress.org/trunk@37848 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 57314aae9c..f9c3bae9d2 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -3550,7 +3550,7 @@ class WP_Query { * * @since 2.0.0 * - * @param array $request The complete SQL query. + * @param string $request The complete SQL query. * @param WP_Query &$this The WP_Query instance (passed by reference). */ $this->request = apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) );