[wp-trac] [WordPress Trac] #57777: Twenty Twenty: Deprecation warnings on PHP 8.1 because of `wp_add_inline_style()`
WordPress Trac
noreply at wordpress.org
Mon Feb 27 17:30:22 UTC 2023
#57777: Twenty Twenty: Deprecation warnings on PHP 8.1 because of
`wp_add_inline_style()`
-----------------------------------------------+-----------------------
Reporter: swissspidy | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info commit | Focuses:
-----------------------------------------------+-----------------------
Changes (by flixos90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"55427" 55427]:
{{{
#!CommitTicketReference repository="" revision="55427"
Twenty Twenty: Avoid PHP warnings in 8.1 due to incorrect usage of
`wp_add_inline_style()`.
This changeset adjusts the logic to use a more defensive approach, to
avoid passing potentially invalid values to `wp_add_inline_style()`.
Props flixos90, mukesh27, costdev, swissspidy, poena, sabernhardt.
Fixes #57777.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57777#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list