From 19dd85ea289737a0dacdd98a688fe42d46647592 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Sat, 14 Oct 2023 18:58:48 +0900 Subject: [PATCH] Change JS filter name --- src/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 3bc3ae7..5dffaeb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -12,7 +12,7 @@ import SourceList from './source-list'; import './editor.scss'; import type { BlockAttributes } from './types'; -const addMobileImageAttributes = ( settings: { [ key: string ]: any } ) => { +const addImageSourceAttributes = ( settings: { [ key: string ]: any } ) => { if ( 'core/image' !== settings.name ) { return settings; } @@ -35,8 +35,8 @@ const addMobileImageAttributes = ( settings: { [ key: string ]: any } ) => { addFilter( 'blocks.registerBlockType', - 'enable-responsive-image/add-mobile-image-setting', - addMobileImageAttributes + 'enable-responsive-image/add-image-source-attributes', + addImageSourceAttributes ); const withInspectorControl =