diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/class-wp-user-query.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/wp-includes/class-wp-user-query.php b/wp-includes/class-wp-user-query.php index b8b4733..0d2c0de 100644 --- a/wp-includes/class-wp-user-query.php +++ b/wp-includes/class-wp-user-query.php @@ -818,13 +818,13 @@ class WP_User_Query { $this->results = apply_filters_ref_array( 'users_pre_query', array( null, &$this ) ); if ( null === $this->results ) { - $this->request = " - SELECT {$this->query_fields} - {$this->query_from} - {$this->query_where} - {$this->query_orderby} - {$this->query_limit} - "; + // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841. + $this->request = + "SELECT {$this->query_fields} + {$this->query_from} + {$this->query_where} + {$this->query_orderby} + {$this->query_limit}"; $cache_value = false; $cache_key = $this->generate_cache_key( $qv, $this->request ); $cache_group = 'user-queries'; |