[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
Fri Feb 24 20:15:24 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:  assigned
 Priority:  normal                             |   Milestone:  6.2
Component:  Bundled Theme                      |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch has-testing-info commit  |     Focuses:
-----------------------------------------------+-----------------------

Comment (by flixos90):

 @swissspidy @sabernhardt Fair points, I have pushed a new commit
 https://github.com/WordPress/wordpress-
 develop/pull/4123/commits/7f43079ac58ecd4fcdf97460704c47241c0393c0 that
 also avoids adding the Customizer styles if they're empty or `false`-y.

 Thank you @poena and @mukesh27 for the testing and review!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57777#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list