WordPress.org

Make WordPress Core

Ticket #10045: 10045.diff

File 10045.diff, 698 bytes (added by dd32, 5 years ago)
  • wp-includes/http.php

     
    625625                        } 
    626626                } 
    627627 
     628                //fsockopen has issues with 'localhost' with IPv6 with certain versions of PHP, It attempts to connect to ::1, 
     629                // which fails when the server is not setup for it. For compatibility, always connect to the IPv4 address. 
     630                if ( 'localhost' == strtolower($fsockopen_host) ) 
     631                        $fsockopen_host = '127.0.0.1'; 
     632 
    628633                // There are issues with the HTTPS and SSL protocols that cause errors that can be safely 
    629634                // ignored and should be ignored. 
    630635                if ( true === $secure_transport )