Make WordPress Core

Ticket #59708: patch.patch

File patch.patch, 442 bytes (added by rebasaurus, 14 months ago)

Remove HTTP out of get_allowed_http_origins

  • wp-includes/http.php

    diff --git a/wp-includes/http.php b/wp-includes/http.php
    index e1738beedf..6ead7b56a3 100644
    a b function get_allowed_http_origins() { 
    431431        // @todo Preserve port?
    432432        $allowed_origins = array_unique(
    433433                array(
    434                         'http://' . $admin_origin['host'],
    435434                        'https://' . $admin_origin['host'],
    436                         'http://' . $home_origin['host'],
    437435                        'https://' . $home_origin['host'],
    438436                )
    439437        );