Make WordPress Core


Ignore:
Timestamp:
07/06/2023 12:14:34 AM (12 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document the return value of wp_check_php_version() using hash notation.

Follow-up to [42832].

See #57840.

File:
1 edited

Legend:

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

    r55990 r56144  
    15731573 * @since 5.1.1 Added the {@see 'wp_is_php_version_acceptable'} filter.
    15741574 *
    1575  * @return array|false Array of PHP version data. False on failure.
     1575 * @return array|false {
     1576 *     Array of PHP version data. False on failure.
     1577 *
     1578 *     @type string $recommended_version The PHP version recommended by WordPress.
     1579 *     @type string $minimum_version     The minimum required PHP version.
     1580 *     @type bool   $is_supported        Whether the PHP version is actively supported.
     1581 *     @type bool   $is_secure           Whether the PHP version receives security updates.
     1582 *     @type bool   $is_acceptable       Whether the PHP version is still acceptable or warnings
     1583 *                                       should be shown and an update recommended.
     1584 * }
    15761585 */
    15771586function wp_check_php_version() {
     
    15961605        }
    15971606
    1598         /**
    1599          * Response should be an array with:
    1600          *  'recommended_version' - string - The PHP version recommended by WordPress.
    1601          *  'is_supported' - boolean - Whether the PHP version is actively supported.
    1602          *  'is_secure' - boolean - Whether the PHP version receives security updates.
    1603          *  'is_acceptable' - boolean - Whether the PHP version is still acceptable or warnings
    1604          *                              should be shown and an update recommended.
    1605          */
    16061607        $response = json_decode( wp_remote_retrieve_body( $response ), true );
    16071608
Note: See TracChangeset for help on using the changeset viewer.