diff --git a/README.md b/README.md index 9f19be0298ba5a31052491a31ccb0b059136d421..8f05c2e8562564229d6eafa1e21e1f54b905a370 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** revision, revisions, admin **Requires at least:** 3.6 **Tested up to:** 6.0 -**Stable tag:** 1.4.1 +**Stable tag:** 1.4.2 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the ## Changelog ## +### 1.4.2 ### +* Fix notice appearing on Widgets Block Editor. + ### 1.4.1 ### * Update translation text domain to `wp-revisions-control`, conforming to WordPress standards. * Add Polish translation thanks to [Maciej Gryniuk](https://github.com/odie2). @@ -58,6 +61,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the ## Upgrade Notice ## +### 1.4.2 ### +Fixes notice appearing on Widgets Block Editor. + ### 1.4.1 ### Updates translation text domain to `wp-revisions-control`, conforming to WordPress standards. diff --git a/inc/class-block-editor.php b/inc/class-block-editor.php index b68b3e6341ed5cab47d62b4dbefed9e63246e2d1..f2d5f938693f0a0fadc694350590dbc06148f2db 100644 --- a/inc/class-block-editor.php +++ b/inc/class-block-editor.php @@ -149,6 +149,12 @@ class Block_Editor { * Register Gutenberg script. */ public function action_enqueue_block_editor_assets() { + global $pagenow; + + if ( 'widgets.php' === $pagenow ) { + return; + } + $handle = 'wp-revisions-control-block-editor'; $asset_data = require_once dirname( __DIR__ ) . '/assets/build/gutenberg.asset.php'; diff --git a/languages/wp-revisions-control.pot b/languages/wp-revisions-control.pot index 5fa80acd4d87301c641e327d013b9f5907dbf739..fa1a05e5948c7ac9fa353e5f40bb43c86c7a3320 100644 --- a/languages/wp-revisions-control.pot +++ b/languages/wp-revisions-control.pot @@ -2,10 +2,10 @@ # This file is distributed under the same license as the WP Revisions Control package. msgid "" msgstr "" -"Project-Id-Version: WP Revisions Control 1.4.1\n" +"Project-Id-Version: WP Revisions Control 1.4.2\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/wp-revisions-control\n" -"POT-Creation-Date: 2022-06-06 04:01:11+00:00\n" +"POT-Creation-Date: 2022-06-11 19:34:09+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/readme.txt b/readme.txt index 6890bf51e65b5b266da508965651f3858151dc71..27a30cf32859330c3092de5dad4feb0f37771339 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://ethitter.com/donate/ Tags: revision, revisions, admin Requires at least: 3.6 Tested up to: 6.0 -Stable tag: 1.4.1 +Stable tag: 1.4.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -35,6 +35,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the == Changelog == += 1.4.2 = +* Fix notice appearing on Widgets Block Editor. + = 1.4.1 = * Update translation text domain to `wp-revisions-control`, conforming to WordPress standards. * Add Polish translation thanks to [Maciej Gryniuk](https://github.com/odie2). @@ -58,6 +61,9 @@ Navigate to **Settings > Writing** in your WordPress Dashboard, and look for the == Upgrade Notice == += 1.4.2 = +Fixes notice appearing on Widgets Block Editor. + = 1.4.1 = Updates translation text domain to `wp-revisions-control`, conforming to WordPress standards. diff --git a/wp-revisions-control.php b/wp-revisions-control.php index d70ec669066c7c89501e4ad03b25c32224f441d1..272d2bf053879d93485c98a5ab56a62d5897022c 100644 --- a/wp-revisions-control.php +++ b/wp-revisions-control.php @@ -4,7 +4,7 @@ * Plugin URI: https://ethitter.com/plugins/wp-revisions-control/ * Description: Control how many revisions are stored for each post type * Author: Erick Hitter - * Version: 1.4.1 + * Version: 1.4.2 * Author URI: https://ethitter.com/ * Text Domain: wp-revisions-control * Domain Path: /languages/