Skip to content

Make ImagePlaceholder available via the global wp object - #5039

Merged
aduth merged 3 commits into
WordPress:masterfrom
johnwatkins0:master
Feb 19, 2018
Merged

aduth merged 3 commits into
WordPress:masterfrom
johnwatkins0:master

Conversation

@johnwatkins0

Copy link
Copy Markdown
Member

Description

I noticed the ImagePlaceHolder component was missing from the global wp object. I assume this is not a deliberate choice, as ImagePlaceHolder is super useful. This PR fixes the issue by importing and exporting it in blocks/index.js.

Comment thread blocks/index.js Outdated
export { default as BlockIcon } from './block-icon';
export { default as ColorPalette } from './color-palette';
export { default as Editable } from './rich-text/editable';
export { default as ImagePlaceHolder } from './image-placeholder';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the naming of the directory, I'd expect this to be camel-cased as: ImagePlaceholder

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, @aduth. The most recent commit changes ImagePlaceHolder to ImagePlaceholder (everywhere).

@aduth aduth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@aduth
aduth merged commit 967d010 into WordPress:master Feb 19, 2018
@mtias

mtias commented Mar 1, 2018

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants