Short-circuits the process of detecting errors related to HTTPS support.
Description
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.
Parameters
$prenull|WP_Error
Error object to short-circuit detection, or null to continue with the default behavior.
99* @since 6.4.0100*101* @param null|WP_Error$pre Error object to short-circuit detection,102*ornull to continue with the default behavior.103* @returnnull|WP_Error Error objectifHTTPS detection errors are found,null otherwise.104*/105$support_errors=apply_filters('pre_wp_get_https_detection_errors',null);106if(is_wp_error($support_errors)){107return$support_errors->errors;108}109110$support_errors=newWP_Error();111
History
Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.