PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
← All changes | extensions/blocks/premium-content/subscriber-view/subscriber-view.php +1 -5 12.4.2 → 16.3-beta View file →
@@ -19,17 +19,13 @@
19 19 * This is done via an action so that we can disable
20 20 * registration if we need to.
21 21 */
22 22 function register_subscriber_view_block() {
23 - // Determine required `context` key based on Gutenberg version.
24 - $deprecated = function_exists( 'gutenberg_get_post_from_context' );
25 - $uses = $deprecated ? 'context' : 'uses_context';
26 -
27 23 Blocks::jetpack_register_block(
28 24 SUBSCRIBER_VIEW_NAME,
29 25 array(
30 26 'render_callback' => __NAMESPACE__ . '\render_subscriber_view_block',
31 - $uses => array( 'premium-content/planId' ),
27 + 'uses_context' => array( 'premium-content/planId', 'premium-content/planIds' ),
32 28 )
33 29 );
34 30 }
35 31 add_action( 'init', __NAMESPACE__ . '\register_subscriber_view_block' );