mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Docs: Document the return value of wp_check_php_version()
using hash notation.
Follow-up to [42832]. See #57840. Built from https://develop.svn.wordpress.org/trunk@56144 git-svn-id: http://core.svn.wordpress.org/trunk@55656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fb9013c9b4
commit
8695849124
@ -1572,7 +1572,16 @@ function _wp_privacy_settings_filter_draft_page_titles( $title, $page ) {
|
||||
* @since 5.1.0
|
||||
* @since 5.1.1 Added the {@see 'wp_is_php_version_acceptable'} filter.
|
||||
*
|
||||
* @return array|false Array of PHP version data. False on failure.
|
||||
* @return array|false {
|
||||
* Array of PHP version data. False on failure.
|
||||
*
|
||||
* @type string $recommended_version The PHP version recommended by WordPress.
|
||||
* @type string $minimum_version The minimum required PHP version.
|
||||
* @type bool $is_supported Whether the PHP version is actively supported.
|
||||
* @type bool $is_secure Whether the PHP version receives security updates.
|
||||
* @type bool $is_acceptable Whether the PHP version is still acceptable or warnings
|
||||
* should be shown and an update recommended.
|
||||
* }
|
||||
*/
|
||||
function wp_check_php_version() {
|
||||
$version = PHP_VERSION;
|
||||
@ -1595,14 +1604,6 @@ function wp_check_php_version() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Response should be an array with:
|
||||
* 'recommended_version' - string - The PHP version recommended by WordPress.
|
||||
* 'is_supported' - boolean - Whether the PHP version is actively supported.
|
||||
* 'is_secure' - boolean - Whether the PHP version receives security updates.
|
||||
* 'is_acceptable' - boolean - Whether the PHP version is still acceptable or warnings
|
||||
* should be shown and an update recommended.
|
||||
*/
|
||||
$response = json_decode( wp_remote_retrieve_body( $response ), true );
|
||||
|
||||
if ( ! is_array( $response ) ) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-beta3-56143';
|
||||
$wp_version = '6.3-beta3-56144';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user