[wp-trac] [WordPress Trac] #59704: Bundled themes: harden fonts URL code for PHP 8.1
WordPress Trac
noreply at wordpress.org
Mon Feb 12 21:46:30 UTC 2024
#59704: Bundled themes: harden fonts URL code for PHP 8.1
----------------------------------------+-----------------------
Reporter: jordesign | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info | Focuses:
----------------------------------------+-----------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"57601" 57601]:
{{{
#!CommitTicketReference repository="" revision="57601"
Bundled Themes: Cast font URL functions to `string` for
`add_editor_style()`.
This changeset ensures the result of the font URL functions is a `string`
before using it in `add_editor_style()`, to avoid PHP warnings on child
themes. This similarily updates Twenty Thirteen, Twenty Fourteen, Twenty
Fifteen, Twenty Sixteen, and Twenty Seventeen.
Props jordesign, SergeyBiryukov, sabernhardt, huzaifaalmesbah, shailu25.
Fixes #59704.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59704#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list