Add version to doing it wrong calls (https://github.com/woocommerce/woocommerce-blocks/pull/5134)
This commit is contained in:
parent
51b61552cf
commit
947927eded
|
@ -107,7 +107,7 @@ abstract class AbstractBlock {
|
|||
*/
|
||||
protected function initialize() {
|
||||
if ( empty( $this->block_name ) ) {
|
||||
_doing_it_wrong( __METHOD__, esc_html( __( 'Block name is required.', 'woo-gutenberg-products-block' ) ), '4.5.0' );
|
||||
_doing_it_wrong( __METHOD__, esc_html__( 'Block name is required.', 'woo-gutenberg-products-block' ), '4.5.0' );
|
||||
return false;
|
||||
}
|
||||
$this->integration_registry->initialize( $this->block_name . '_block' );
|
||||
|
|
|
@ -32,7 +32,7 @@ class IntegrationRegistry {
|
|||
}
|
||||
|
||||
if ( empty( $this->registry_identifier ) ) {
|
||||
_doing_it_wrong( __METHOD__, esc_html( __( 'Integration registry requires an identifier.', 'woo-gutenberg-products-block' ) ) );
|
||||
_doing_it_wrong( __METHOD__, esc_html__( 'Integration registry requires an identifier.', 'woo-gutenberg-products-block' ), '4.6.0' );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ class IntegrationRegistry {
|
|||
|
||||
if ( $this->is_registered( $name ) ) {
|
||||
/* translators: %s: Integration name. */
|
||||
_doing_it_wrong( __METHOD__, esc_html( sprintf( __( '"%s" is already registered.', 'woo-gutenberg-products-block' ), $name ) ) );
|
||||
_doing_it_wrong( __METHOD__, esc_html( sprintf( __( '"%s" is already registered.', 'woo-gutenberg-products-block' ), $name ) ), '4.6.0' );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ class IntegrationRegistry {
|
|||
|
||||
if ( ! $this->is_registered( $name ) ) {
|
||||
/* translators: %s: Integration name. */
|
||||
_doing_it_wrong( __METHOD__, esc_html( sprintf( __( 'Integration "%s" is not registered.', 'woo-gutenberg-products-block' ), $name ) ) );
|
||||
_doing_it_wrong( __METHOD__, esc_html( sprintf( __( 'Integration "%s" is not registered.', 'woo-gutenberg-products-block' ), $name ) ), '4.6.0' );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue