[wp-trac] [WordPress Trac] #48077: Plugin install fails from popup modal on localhost installs

WordPress Trac noreply at wordpress.org
Thu Sep 19 21:14:13 UTC 2019


#48077: Plugin install fails from popup modal on localhost installs
-------------------------------------+-------------------------------------
 Reporter:  garrett-eclipse          |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  low                      |   Milestone:  5.3
Component:  Upgrade/Install          |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots has-     |     Focuses:  javascript,
  patch commit                       |  administration
-------------------------------------+-------------------------------------

Comment (by garrett-eclipse):

 Hi @afragen

 I do believe it has to do with the port being present on the URL as on
 Local by Flywheel it's no issue and at work where I have MAMP Pro w/
 domain mapping it's also no issue it's just at home where MAMP basic is at
 localhost:8888 as localhost is occupied by apache server.

 As @pierlo mentioned 'When verifying the origin for postMessage events,
 the port was not considered, so any instance of WordPress being served
 from a custom port (not 80 or 443) won't work.'

 The patch and change to 'use host instead of hostname for retrieving the
 domain.' has addressed this without introducing any issue as yet on other
 configurations such as those using standard ports.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48077#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list