From e2719c4e909b87a82df7bc12e1ba21ae4d1f5fd0 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 28 Apr 2018 14:44:23 +0000 Subject: [PATCH] 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 --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 97b9ee479c..e268127351 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 77b64da839..e170ffe959 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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 ) {