Changeset 56144
- Timestamp:
- 07/06/2023 12:14:34 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r55990 r56144 1573 1573 * @since 5.1.1 Added the {@see 'wp_is_php_version_acceptable'} filter. 1574 1574 * 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 * } 1576 1585 */ 1577 1586 function wp_check_php_version() { … … 1596 1605 } 1597 1606 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 warnings1604 * should be shown and an update recommended.1605 */1606 1607 $response = json_decode( wp_remote_retrieve_body( $response ), true ); 1607 1608
Note: See TracChangeset
for help on using the changeset viewer.