Skip to content

Commit

Permalink
Change JS filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 14, 2023
1 parent 2a03215 commit 19dd85e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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 =
Expand Down

0 comments on commit 19dd85e

Please sign in to comment.