Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Apr 25, 2019
1 parent 3bea9b1 commit 59797b1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions assets/src/block-editor/amp-block-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
* If one exists for a block, it display it inline with a Notice component.
*/

/* exported ampBlockValidation */
/* global wp, _ */
const ampBlockValidation = ( function() { // eslint-disable-line no-unused-vars
window.ampBlockValidation = ( function() { // eslint-disable-line no-unused-vars
'use strict';

const module = {
Expand Down
3 changes: 1 addition & 2 deletions assets/src/block-editor/amp-editor-blocks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* global _ */
/* exported ampEditorBlocks */
/* eslint no-magic-numbers: [ "error", { "ignore": [ 1, -1, 0, 4 ] } ] */

const ampEditorBlocks = ( function() {
window.ampEditorBlocks = ( function() {
const __ = wp.i18n.__;
const _x = wp.i18n._x;

Expand Down
4 changes: 1 addition & 3 deletions assets/src/classic-editor/amp-post-meta-box.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/* exported ampPostMetaBox */

/**
* AMP Post Meta Box.
*
* @todo Rename this to be just the ampEditPostScreen?
*
* @since 0.6
*/
const ampPostMetaBox = ( function( $ ) { // eslint-disable-line no-unused-vars
window.ampPostMetaBox = ( function( $ ) { // eslint-disable-line no-unused-vars
'use strict';

const component = {
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-amp-editor-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function enqueue_block_editor_assets() {
// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter
wp_enqueue_script(
'amp-editor-blocks',
amp_get_asset_url( 'js/amp-blocks.js' ),
amp_get_asset_url( 'js/amp-editor-blocks.js' ),
array( 'wp-editor', 'wp-blocks', 'lodash', 'wp-i18n', 'wp-element', 'wp-components' ),
AMP__VERSION
);
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ const blockEditor = {
{
// Make localized data importable.
'amp-block-editor-data': 'wpAmpEditor',
'amp-stories-fonts': 'ampStoriesFonts',
},
],
entry: {
Expand Down

0 comments on commit 59797b1

Please sign in to comment.