Repository navigation
Premium Content: Tidy up deprecation errors. - #44192
Conversation
|
Caution: This PR affects files in the FSE Plugin on WordPress.com D46453-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing in the FSE Plugin for more info: PCYsg-ly5-p2 |
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
|
Tested this in JN and am seeing a PHP error when viewing the Premium Content widget as a subscriber - however, it's a different error than the one in your screenshot: I'm not sure if this is directly connected to your fix or not. |
gwwar
left a comment
There was a problem hiding this comment.
You're right, @blackjackkent it looks like we have other warnings to tidy, but we can fix those in follow up PRs.
@kwight I verified that the context warnings no longer appear in Gutenberg 8.3 and 8.5.1

Starting with WordPress/gutenberg#22686, the PHP
register_block_typeblock arguments forcontextandprovidesContextwere deprecated (replaced byuses_contextandprovides_contextrespectively). This PR updates the usage to quiet thedoing_it_wrong()errors.Testing Instructions
FSE plugin / Build FSE plugin (pull_request)task below as a ZIP plugin that you can upload to the test site.