Make WordPress Core


Ignore:
Timestamp:
01/04/2021 05:16:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [46696], [47060], [49926], [49927].

See #51800.

File:
1 edited

Legend:

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

    r49927 r49929  
    939939 * @param string $url        URL to retrieve HTTP headers from.
    940940 * @param bool   $deprecated Not Used.
    941  * @return false|string False on failure, headers on success.
     941 * @return string|false Headers on success, false on failure.
    942942 */
    943943function wp_get_http_headers( $url, $deprecated = false ) {
     
    69156915 *                        the similarly arbitrary {@see '$context_memory_limit'} filter will be
    69166916 *                        invoked. Default 'admin'.
    6917  * @return false|int|string The limit that was set or false on failure.
     6917 * @return int|string|false 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.