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:
parent
c71a898f78
commit
6eef5a6234
@ -1848,7 +1848,8 @@ class wpdb {
|
|||||||
* @since 0.71
|
* @since 0.71
|
||||||
*
|
*
|
||||||
* @param string $query Database query
|
* @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 ) {
|
public function query( $query ) {
|
||||||
if ( ! $this->ready ) {
|
if ( ! $this->ready ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user