Filter hook 'pre_wp_update_https_detection_errors'
in WP Core File wp-includes/deprecated.php at line 6003
Description
Short-circuits the process of detecting errors related to HTTPS support. Returning a `WP_Error` from the filter will effectively short-circuit the default logic of trying a remote request to the site over HTTPS, storing the errors array from the returned `WP_Error` instead.
Occurrences
Filename |
Line Number |
wp-includes/deprecated.php |
6003 |
Parameters
Type |
Name |
Description |
null|WP_Error |
$pre |
Error object to short-circuit detection, or null to continue with the default behavior. |
PHP Doc
/**
* Short-circuits the process of detecting errors related to HTTPS support.
*
* Returning a `WP_Error` from the filter will effectively short-circuit the default logic of trying a remote
* request to the site over HTTPS, storing the errors array from the returned `WP_Error` instead.
*
* @since 5.7.0
* @deprecated 6.4.0 The `wp_update_https_detection_errors` filter is no longer used and has been replaced by `pre_wp_get_https_detection_errors`.
*
* @param null|WP_Error $pre Error object to short-circuit detection,
* or null to continue with the default behavior.
*/