WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/10/2020 08:00:30 PM (13 months ago)
Author:
johnbillion
Message:

Docs: Standardise the type name for booleans and integers.

This brings these docs inline with the documentation standards.

Props ravipatel, justinahinon

Fixes #51426

File:
1 edited

Legend:

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

    r49109 r49120  
    12451245 * @since 4.7.0
    12461246 *
    1247  * @return integer 401 if the user is not logged in, 403 if the user is logged in.
     1247 * @return int 401 if the user is not logged in, 403 if the user is logged in.
    12481248 */
    12491249function rest_authorization_required_code() {
     
    13421342 *
    13431343 * @param bool|string|int $value The value being evaluated.
    1344  * @return boolean Returns the proper associated boolean value.
     1344 * @return bool Returns the proper associated boolean value.
    13451345 */
    13461346function rest_sanitize_boolean( $value ) {
     
    13631363 *
    13641364 * @param bool|string $maybe_bool The value being evaluated.
    1365  * @return boolean True if a boolean, otherwise false.
     1365 * @return bool True if a boolean, otherwise false.
    13661366 */
    13671367function rest_is_boolean( $maybe_bool ) {
Note: See TracChangeset for help on using the changeset viewer.