Changeset 44788 for trunk/src/wp-admin/includes/misc.php
- Timestamp:
- 03/04/2019 09:13:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r44785 r44788 2017 2017 * 2018 2018 * @since 5.1.0 2019 * @since 5.1.1 Added the {@see 'wp_is_php_version_acceptable'} filter. 2019 2020 * 2020 2021 * @return array|false $response Array of PHP version data. False on failure. … … 2055 2056 } 2056 2057 2058 if ( isset( $response['is_acceptable'] ) && $response['is_acceptable'] ) { 2059 /** 2060 * Filters whether the active PHP version is considered acceptable by WordPress. 2061 * 2062 * Returning false will trigger a PHP version warning to show up in the admin dashboard to administrators. 2063 * 2064 * This filter is only run if the wordpress.org Serve Happy API considers the PHP version acceptable, ensuring 2065 * that this filter can only make this check stricter, but not loosen it. 2066 * 2067 * @since 5.1.1 2068 * 2069 * @param bool $is_acceptable Whether the PHP version is considered acceptable. Default true. 2070 * @param string $version PHP version checked. 2071 */ 2072 $response['is_acceptable'] = (bool) apply_filters( 'wp_is_php_version_acceptable', true, $version ); 2073 } 2074 2057 2075 return $response; 2058 2076 }
Note: See TracChangeset
for help on using the changeset viewer.