Docs: Correct the possible return types for the `wpdb::query()` method.

Props isabel104

See #42505


git-svn-id: https://develop.svn.wordpress.org/trunk@43017 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2018-04-28 14:43:36 +00:00
parent c71a898f78
commit 6eef5a6234
1 changed files with 2 additions and 1 deletions

View File

@ -1848,7 +1848,8 @@ class wpdb {
* @since 0.71
*
* @param string $query Database query
* @return int|false Number of rows affected/selected or false on error
* @return int|bool Boolean true for CREATE, ALTER, TRUNCATE and DROP queries. Number of rows
* affected/selected for all other queries. Boolean false on error.
*/
public function query( $query ) {
if ( ! $this->ready ) {