WordPress.org

Make WordPress Core

Ticket #44764: 44764.diff

File 44764.diff, 438 bytes (added by kadamwhite, 2 years ago)
  • src/js/_enqueues/wp/api.js

    diff --git src/js/_enqueues/wp/api.js src/js/_enqueues/wp/api.js
    index c62e73ff38..e5aeac6e4c 100644
     
    145145        wp.api.utils.getRootUrl = function() {
    146146                return window.location.origin ?
    147147                        window.location.origin + '/' :
    148                         window.location.protocol + '/' + window.location.host + '/';
     148                        window.location.protocol + '//' + window.location.host + '/';
    149149        };
    150150
    151151        /**