Skip to content

Commit

Permalink
v1.0.9 (#4)
Browse files Browse the repository at this point in the history
* chore(styles): Remove unnecessary core-classic styles
* chore(editor): Remove deprecated unregister on yoast-seo/siblings and yoast-seo/subpages
* enhance(editor): Add safe-svg to the disallow list
  • Loading branch information
Log1x authored Apr 5, 2023
1 parent 8a36608 commit b026a66
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 40 deletions.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: GutenTweaks
* Plugin URI: https://github.com/log1x/gutentweaks
* Description: A plugin containing a few Gutenberg tweaks.
* Version: 1.0.8
* Version: 1.0.9
* Author: Brandon Nifong
* Author URI: https://github.com/log1x
* Licence: MIT
Expand Down
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => 'adb052fb2ec8405e0beed762e7f4b2f8');
<?php return array('dependencies' => array('wp-blocks', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => '99b8cd9ea0a2477da511c2f92008f889');
2 changes: 1 addition & 1 deletion public/js/editor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion resources/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.root {
@import './blocks/core-list';
@import './blocks/core-classic';
}
25 changes: 0 additions & 25 deletions resources/css/blocks/core-classic.scss

This file was deleted.

3 changes: 1 addition & 2 deletions resources/css/editor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.editor-styles-wrapper {
@import './blocks/core-list';
@import './blocks/core-classic';
@import './blocks/core-heading';
@import './blocks/core-list';
}
13 changes: 6 additions & 7 deletions resources/js/extensions/disable-block-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ import domReady from '@wordpress/dom-ready'
import { unregisterBlockType, getBlockTypes } from '@wordpress/blocks'

const blacklist = [
'bcn/breadcrumb-trail',
'bcn/',
'core/archive',
'core/audio',
'core/avatar',
'core/calendar',
'core/categories',
'core/comments',
'core/comment-template',
'core/comment-author-name',
'core/comment-content',
'core/comment-date',
'core/comment-edit-link',
'core/comment-reply-link',
'core/comment-template',
'core/comments-pagination-next',
'core/comments-pagination-numbers',
'core/comments-pagination-previous',
'core/comments-pagination',
'core/comments-query-loop',
'core/comments-title',
'core/comments',
'core/embed',
'core/file',
'core/gallery',
Expand Down Expand Up @@ -71,18 +71,17 @@ const blacklist = [
'page-generator-pro/',
'rank-math/howto-block',
'rank-math/rich-snippet',
'safe-svg/',
'yoast-seo/breadcrumbs',
'yoast-seo/estimated-reading-time',
'yoast-seo/related-links',
'yoast-seo/siblings',
'yoast-seo/subpages',
'yoast-seo/table-of-contents',
]

domReady(() => {
getBlockTypes().forEach(
block =>
blacklist.some(x => block.name.includes(x)) &&
(block) =>
blacklist.some((x) => block.name.includes(x)) &&
unregisterBlockType(block.name)
)
})

0 comments on commit b026a66

Please sign in to comment.