Skip to content

Commit

Permalink
Change name of displayName options
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 16, 2019
1 parent b14f5e2 commit 78d0c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import BlockIcon from '../block-icon';
* @return {string} The display name value.
*/
function getBlockDisplayName( blockType, attributes ) {
const displayNameAttribute = blockType.__experimentalDisplayNameAttribute;
const displayNameAttribute = blockType.__experimentalDisplayName;

if ( ! displayNameAttribute || ! attributes[ displayNameAttribute ] ) {
return blockType.title;
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-menu-item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const settings = {

description: __( 'Add a page, link, or other item to your Navigation Menu.' ),

__experimentalDisplayNameAttribute: 'label',
__experimentalDisplayName: 'label',

edit,
save,
Expand Down

0 comments on commit 78d0c96

Please sign in to comment.