Make WordPress Core

Opened 3 months ago

Last modified 6 weeks ago

#48432 new defect (bug)

WordPress updates broken with proxy and non routed environment

Reported by: sooslaca Owned by:
Milestone: 5.4 Priority: normal
Severity: major Version: 5.2.4
Component: HTTP API Keywords:
Focuses: Cc:
PR Number:

Description (last modified by SergeyBiryukov)


This change [46475] broke updates when you're using proxy and you don't have DNS resolution/routing for the outside world. (like corporate networks)

Issue came up with this url https://downloads.wordpress.org/plugin/multiple-domain.zip


    [scheme] => https
    [host] => downloads.wordpress.org
    [path] => /plugin/multiple-domain.zip

I think it worked before because

if ( empty( $parsed_url['port'] ) ) {
   return $url;

returned the URL and not false.

I tested changing it back to $ip = false; and I was able to update plugins.

Change History (6)

#1 @SergeyBiryukov
3 months ago

  • Component changed from General to HTTP API
  • Description modified (diff)
  • Milestone changed from Awaiting Review to 5.2.5

This ticket was mentioned in Slack in #core by david.baumwald. View the logs.

3 months ago

#3 @SergeyBiryukov
3 months ago

#48509 was marked as a duplicate.

#4 @dd32
2 months ago

#48509 was marked as a duplicate.

#5 @dd32
2 months ago

#48761 was marked as a duplicate.

#6 @SergeyBiryukov
6 weeks ago

  • Milestone changed from 5.2.5 to 5.4
Note: See TracTickets for help on using tickets.