Closed cameronterry closed 4 years ago
This PR includes a fix for oEmbeds which are being included to posts using the mapped domains.
The IP address is likely to have WordPress consider the domains "external", which ... technically ... they are, rather than "internal".
Logic has been added to the http_request_host_is_external (Reference) to make the domains identify as "internal" rather than "external".
http_request_host_is_external
If you are using self-signed certificates, you will need to disable WordPress' SSL verify on cURL requests. This can be done using the following code;
function dm_temp_test_http_request_args( $parsed_args, $url ) { $parsed_args['sslverify'] = false; return $parsed_args; } add_filter( 'http_request_args', 'dm_temp_test_http_request_args', 10, 2 );
This PR includes a fix for oEmbeds which are being included to posts using the mapped domains.
The IP address is likely to have WordPress consider the domains "external", which ... technically ... they are, rather than "internal".
Logic has been added to the
http_request_host_is_external
(Reference) to make the domains identify as "internal" rather than "external".Local Testing Notes
If you are using self-signed certificates, you will need to disable WordPress' SSL verify on cURL requests. This can be done using the following code;