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

Props isabel104

See #42505

Built from https://develop.svn.wordpress.org/trunk@43017


git-svn-id: http://core.svn.wordpress.org/trunk@42846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2018-04-28 14:44:23 +00:00
parent 4ccca7a835
commit e2719c4e90
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43016';
$wp_version = '5.0-alpha-43017';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

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 ) {