[wp-trac] [WordPress Trac] #61690: wp_calculate_image_srcset triggers warnings when WP_CONTENT_URL is a relative URL
WordPress Trac
noreply at wordpress.org
Wed Aug 7 19:41:31 UTC 2024
#61690: wp_calculate_image_srcset triggers warnings when WP_CONTENT_URL is a
relative URL
-------------------------------------------------+-------------------------
Reporter: mattraines | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6.2
Component: Upload | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-major dev-reviewed | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"58862" 58862]:
{{{
#!CommitTicketReference repository="" revision="58862"
Media: Check if content URL includes a hostname in
`wp_calculate_image_srcset()`.
This resolves an `Undefined array key "host"` PHP warning if
`WP_CONTENT_URL` is set to a relative URL.
Follow-up to [58097].
Reviewed by hellofromTonya.
Merges [58773] to the 6.6 branch.
Props mattraines, narenin, pamprn, SergeyBiryukov.
Fixes #61690.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61690#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list