From 18002bb1eeb7df7c537d54d7528dc304b9ae8c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Fri, 19 Jun 2020 13:53:29 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Miguel Fonseca --- lib/class-wp-block.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/class-wp-block.php b/lib/class-wp-block.php index 3c897e13793351..a8f1c763a0f170 100644 --- a/lib/class-wp-block.php +++ b/lib/class-wp-block.php @@ -108,19 +108,19 @@ public function __construct( $block, $available_context = array(), $registry = n if ( ! empty( $this->block_type->context ) ) { $message = sprintf( /* translators: 1: Block name. */ - __( 'Block type "context" option is deprecated. Please use "uses_context" instead in "%s" block.', 'gutenberg' ), + __( 'The "context" parameter provided in block type "%s" is deprecated. Please use "uses_context" instead.', 'gutenberg' ), $this->name ); - _doing_it_wrong( __CLASS__, $message, '8.4.0' ); + _doing_it_wrong( __CLASS__, $message, '8.6.0' ); $this->block_type->uses_context = $this->block_type->context; } if ( ! empty( $this->block_type->providesContext ) ) { $message = sprintf( /* translators: 1: Block name. */ - __( 'Block type "providesContext" option is deprecated. Please use "provides_context" instead in "%s" block.', 'gutenberg' ), + __( 'The "providesContext" parameter provided in block type "%s" is deprecated. Please use "provides_context".', 'gutenberg' ), $this->name ); - _doing_it_wrong( __CLASS__, $message, '8.4.0' ); + _doing_it_wrong( __CLASS__, $message, '8.6.0' ); $this->block_type->provides_context = $this->block_type->providesContext; }