Skip to content

Commit

Permalink
Merge pull request #80 from mrwweb/wp65
Browse files Browse the repository at this point in the history
WordPress 6.5 compatibility + plugin playground blueprint
  • Loading branch information
mrwweb authored Mar 12, 2024
2 parents d6fbff2 + e50c959 commit 2da386f
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "\/wp-admin\/post-new.php",
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org\/plugins",
"slug": "mrw-web-design-simple-tinymce"
},
"options": {
"activate": true
}
}
]
}
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
= 2.13.0 (March 12, 2024, Released on a train somewhere between Seattle and Portland 🚆) =
- [New] Hide new default box-shadows design feature. Should not interfere with theme-defined shadows. Enable default shadows via `mrw_hidden_block_editor_settings` filter.
- [Fix] Hide Headings 1, 5, and 6 in WordPress 6.5+
- Add new `blueprint.json` file to support plugin repository playground feature

= 2.12.1 (November 30, 2023) =
- Fix ability to unhide newly-hidden inline formats (Footnote, highlight, inline image, inline code, and keyboard)

Expand Down
6 changes: 5 additions & 1 deletion css/block-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
*/
.mrw-block-editor-no-heading-1 .components-button[aria-label="Heading 1"],
.mrw-block-editor-no-heading-5 .components-button[aria-label="Heading 5"],
.mrw-block-editor-no-heading-6 .components-button[aria-label="Heading 6"] {
.mrw-block-editor-no-heading-6 .components-button[aria-label="Heading 6"],
/* WP6.5+ */
.mrw-block-editor-no-heading-1 .block-library-heading-level-dropdown .components-button:nth-child(1),
.mrw-block-editor-no-heading-5 .block-library-heading-level-dropdown .components-button:nth-child(5),
.mrw-block-editor-no-heading-6 .block-library-heading-level-dropdown .components-button:nth-child(6) {
display: none;
}

Expand Down
6 changes: 6 additions & 0 deletions inc/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ function mrw_hidden_block_editor_settings() {
'new-tabs',
'padding',
'pullquote-border',
'shadow',
'spacing',
'sticky-position',
'text-decoration',
Expand Down Expand Up @@ -494,6 +495,11 @@ function mrw_block_editor_settings( $editor_settings, $context ) {
$editor_settings['__experimentalFeatures']['blocks']['core/pullquote']['border'] = [];
}

/* Shadow */
if( in_array( 'shadow', $hidden_settings ) ) {
$editor_settings['__experimentalFeatures']['shadow']['defaultPresets'] = false;
}

/* Text Decoration */
if( in_array( 'text-decoration', $hidden_settings ) ) {
$editor_settings['__experimentalFeatures']['typography']['textDecoration'] = false;
Expand Down
2 changes: 1 addition & 1 deletion mrwweb-simple-tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: MRW Simplified Editor
* Plugin URI: https://MRWweb.com/wordpress-plugins/mrw-web-design-simple-tinymce/
* Description: Streamlines the WordPress editor to focus users on consistent formatting and semantic content.
* Version: 2.12.1
* Version: 2.13.0
* Author: Mark Root-Wiley
* Author URI: https://MRWweb.com
* Text Domain: mrw-web-design-simple-tinymce
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: mrwweb
Tags: Block Editor, Blocks, Gutenberg, Editor Styles, Editor
Requires at least: 6.0
Requires PHP: 5.6.20
Tested up to: 6.4
Stable tag: 2.12.1
Tested up to: 6.5
Stable tag: 2.13.0
Donate link: https://www.paypal.me/rootwiley
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -77,6 +77,11 @@ Visit the GitHub wiki for [examples of filters](https://github.com/mrwweb/mrw-si
1. The Block Editor simplified, here with no colors or drop caps for the Paragraph block.

== Changelog ==
= 2.13.0 (March 12, 2024, Released on a train somewhere between Seattle and Portland 🚆) =
- [New] Hide new default box-shadows design feature. Should not interfere with theme-defined shadows. Enable default shadows via `mrw_hidden_block_editor_settings` filter.
- [Fix] Hide Headings 1, 5, and 6 in WordPress 6.5+
- Add new `blueprint.json` file to support plugin repository playground feature

= 2.12.1 (November 30, 2023) =
- Fix ability to unhide newly-hidden inline formats (Footnote, highlight, inline image, inline code, and keyboard)

Expand Down

0 comments on commit 2da386f

Please sign in to comment.