Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696].

See #48303.
Built from https://develop.svn.wordpress.org/trunk@47060


git-svn-id: http://core.svn.wordpress.org/trunk@46860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2020-01-11 18:32:05 +00:00
parent 2294d65753
commit dd4d98a368
48 changed files with 201 additions and 178 deletions

View File

@@ -1435,10 +1435,10 @@ class wpdb {
* Print SQL/DB error.
*
* @since 0.71
* @global array $EZSQL_ERROR Stores error information of query and error string
* @global array $EZSQL_ERROR Stores error information of query and error string.
*
* @param string $str The error to display
* @return false|void False if the showing of errors is disabled.
* @param string $str The error to display.
* @return void|false Void if the showing of errors is enabled, false if disabled.
*/
public function print_error( $str = '' ) {
global $EZSQL_ERROR;
@@ -3411,7 +3411,7 @@ class wpdb {
*
* @since 1.5.0
*
* @return float Total time spent on the query, in seconds
* @return float Total time spent on the query, in seconds.
*/
public function timer_stop() {
return ( microtime( true ) - $this->time_start );
@@ -3424,9 +3424,9 @@ class wpdb {
*
* @since 1.5.0
*
* @param string $message The Error message
* @param string $error_code Optional. A Computer readable string to identify the error.
* @return false|void
* @param string $message The error message.
* @param string $error_code Optional. A computer-readable string to identify the error.
* @return void|false Void if the showing of errors is enabled, false if disabled.
*/
public function bail( $message, $error_code = '500' ) {
if ( $this->show_errors ) {