Skip to content

Commit

Permalink
Hooks: Update all namespaces to use slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 6, 2017
1 parent 26f0e59 commit c9310eb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions blocks/hooks/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function addSaveProps( extraProps, blockType, attributes ) {
}

export default function anchor( { addFilter } ) {
addFilter( 'registerBlockType', 'core-anchor-attribute', addAttribute );
addFilter( 'BlockEdit', 'core-anchor-inspector-control', addInspectorControl );
addFilter( 'getSaveContent.extraProps', 'core-anchor-save-props', addSaveProps );
addFilter( 'registerBlockType', 'core/anchor/attribute', addAttribute );
addFilter( 'BlockEdit', 'core/anchor/inspector-control', addInspectorControl );
addFilter( 'getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps );
}
6 changes: 3 additions & 3 deletions blocks/hooks/custom-class-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function addSaveProps( extraProps, blockType, attributes ) {
}

export default function customClassName( { addFilter } ) {
addFilter( 'registerBlockType', 'core-custom-class-name-attribute', addAttribute );
addFilter( 'BlockEdit', 'core-custom-class-name-inspector-control', addInspectorControl );
addFilter( 'getSaveContent.extraProps', 'core-custom-class-name-save-props', addSaveProps );
addFilter( 'registerBlockType', 'core/custom-class-name/attribute', addAttribute );
addFilter( 'BlockEdit', 'core/custom-class-name/inspector-control', addInspectorControl );
addFilter( 'getSaveContent.extraProps', 'core/custom-class-name/save-props', addSaveProps );
}
2 changes: 1 addition & 1 deletion blocks/hooks/generated-class-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export function addGeneratedClassName( extraProps, blockType ) {
}

export default function generatedClassName( { addFilter } ) {
addFilter( 'getSaveContent.extraProps', 'core-generated-class-name-save-props', addGeneratedClassName );
addFilter( 'getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName );
}
2 changes: 1 addition & 1 deletion blocks/hooks/matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ export function resolveAttributes( settings ) {
}

export default function matchers( { addFilter } ) {
addFilter( 'registerBlockType', 'core-matchers', resolveAttributes );
addFilter( 'registerBlockType', 'core/matchers', resolveAttributes );
}

0 comments on commit c9310eb

Please sign in to comment.