Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [46696].

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r46696 r47060  
    14361436     *
    14371437     * @since 0.71
    1438      * @global array $EZSQL_ERROR Stores error information of query and error string
    1439      *
    1440      * @param string $str The error to display
    1441      * @return false|void False if the showing of errors is disabled.
     1438     * @global array $EZSQL_ERROR Stores error information of query and error string.
     1439     *
     1440     * @param string $str The error to display.
     1441     * @return void|false Void if the showing of errors is enabled, false if disabled.
    14421442     */
    14431443    public function print_error( $str = '' ) {
     
    34123412     * @since 1.5.0
    34133413     *
    3414      * @return float Total time spent on the query, in seconds
     3414     * @return float Total time spent on the query, in seconds.
    34153415     */
    34163416    public function timer_stop() {
     
    34253425     * @since 1.5.0
    34263426     *
    3427      * @param string $message    The Error message
    3428      * @param string $error_code Optional. A Computer readable string to identify the error.
    3429      * @return false|void
     3427     * @param string $message    The error message.
     3428     * @param string $error_code Optional. A computer-readable string to identify the error.
     3429     * @return void|false Void if the showing of errors is enabled, false if disabled.
    34303430     */
    34313431    public function bail( $message, $error_code = '500' ) {
Note: See TracChangeset for help on using the changeset viewer.