WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49926 r49927  
    939939 * @param string $url        URL to retrieve HTTP headers from.
    940940 * @param bool   $deprecated Not Used.
    941  * @return bool|string False on failure, headers on success.
     941 * @return false|string False on failure, headers on success.
    942942 */
    943943function wp_get_http_headers( $url, $deprecated = false ) {
     
    30153015     * @since 5.1.0 The $real_mime parameter was added.
    30163016     *
    3017      * @param array       $wp_check_filetype_and_ext {
     3017     * @param array        $wp_check_filetype_and_ext {
    30183018     *     Values for the extension, mime type, and corrected filename.
    30193019     *
     
    30223022     *     @type string|false $proper_filename File name with its correct extension, or false if it cannot be determined.
    30233023     * }
    3024      * @param string      $file                      Full path to the file.
    3025      * @param string      $filename                  The name of the file (may differ from $file due to
    3026      *                                               $file being in a tmp directory).
    3027      * @param string[]    $mimes                     Array of mime types keyed by their file extension regex.
    3028      * @param string|bool $real_mime                 The actual mime type or false if the type cannot be determined.
     3024     * @param string       $file                      Full path to the file.
     3025     * @param string       $filename                  The name of the file (may differ from $file due to
     3026     *                                                $file being in a tmp directory).
     3027     * @param string[]     $mimes                     Array of mime types keyed by their file extension regex.
     3028     * @param string|false $real_mime                 The actual mime type or false if the type cannot be determined.
    30293029     */
    30303030    return apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type', 'proper_filename' ), $file, $filename, $mimes, $real_mime );
     
    69156915 *                        the similarly arbitrary {@see '$context_memory_limit'} filter will be
    69166916 *                        invoked. Default 'admin'.
    6917  * @return bool|int|string The limit that was set or false on failure.
     6917 * @return false|int|string The limit that was set or false on failure.
    69186918 */
    69196919function wp_raise_memory_limit( $context = 'admin' ) {
Note: See TracChangeset for help on using the changeset viewer.