Skip to content

Commit

Permalink
Rename block data store
Browse files Browse the repository at this point in the history
  • Loading branch information
notnownikki committed May 30, 2018
1 parent 0fff058 commit 9939995
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core-blocks/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function getEmbedBlockSettings( { title, description, icon, category = 'embed',
const { url } = ownProps.attributes;
// Preview is undefined if we don't know the status of it, false if it failed,
// otherwise it will be an object containing the embed response.
const preview = url ? select( 'core/blocks' ).getPreview( url ) : undefined;
const preview = url ? select( 'core/block-data' ).getPreview( url ) : undefined;
return {
preview,
};
Expand Down
2 changes: 1 addition & 1 deletion core-blocks/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as selectors from './selectors';
import * as actions from './actions';
import * as resolvers from './resolvers';

const store = registerStore( 'core/blocks', {
const store = registerStore( 'core/block-data', {
reducer,
actions,
selectors,
Expand Down
2 changes: 1 addition & 1 deletion core-blocks/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function getPreview( state, url ) {
return preview;
}

const oEmbedLinkCheck = '<a href="' + url +'">' + url + '</a>';
const oEmbedLinkCheck = '<a href="' + url + '">' + url + '</a>';

if ( oEmbedLinkCheck === preview.html ) {
// just a link to the url, it's oEmbed being helpful and creating a link for us, not actually embedding content
Expand Down

0 comments on commit 9939995

Please sign in to comment.