From ed05ab7758f1204eaf78e3e2dbb5d25ea30926e1 Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Mon, 14 Jun 2021 17:14:13 +0900 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20block.json=20=E3=81=AB=20support=20?= =?UTF-8?q?=E3=81=8C=E3=81=AA=E3=81=84=E3=81=A8=20Notice=20=E3=81=8C?= =?UTF-8?q?=E5=87=BA=E3=82=8B=E6=A8=A1=E6=A7=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/blocks/pr-content/block.json | 3 +++ src/blocks/staff/block.json | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/blocks/pr-content/block.json b/src/blocks/pr-content/block.json index 34768137c..fd4c0eb8c 100644 --- a/src/blocks/pr-content/block.json +++ b/src/blocks/pr-content/block.json @@ -64,5 +64,8 @@ "type": "string", "default": "" } + }, + "supports": { + "className": true } } diff --git a/src/blocks/staff/block.json b/src/blocks/staff/block.json index 61b53fa37..dac2ad6a9 100644 --- a/src/blocks/staff/block.json +++ b/src/blocks/staff/block.json @@ -68,5 +68,8 @@ "type": "string", "default": "0" } - } + }, + "supports": { + "className": true + } } From 8eb238a3f18de0b2bda2b43b7ee1c6018f415b48 Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Mon, 14 Jun 2021 17:18:59 +0900 Subject: [PATCH 2/5] =?UTF-8?q?fix:=20WP5.8=20=E4=B8=8B=E3=81=AE=E3=83=96?= =?UTF-8?q?=E3=83=AD=E3=83=83=E3=82=AF=E3=82=AB=E3=83=86=E3=82=B4=E3=83=AA?= =?UTF-8?q?=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=20Notice=20=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/vk-blocks/vk-blocks-functions.php | 2 +- readme.txt | 4 ++-- vk-blocks.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php index 955593c50..eff240fca 100644 --- a/inc/vk-blocks/vk-blocks-functions.php +++ b/inc/vk-blocks/vk-blocks-functions.php @@ -255,7 +255,7 @@ function vkblocks_blocks_categories( $categories, $post ) { return $categories; } - add_filter( 'block_categories', 'vkblocks_blocks_categories', 10, 2 ); + add_filter( 'block_categories_all', 'vkblocks_blocks_categories', 10, 2 ); } if ( ! function_exists( 'vkblocks_set_wp_version' ) ) { diff --git a/readme.txt b/readme.txt index c427b2df7..80e3c25fe 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: vektor-inc,kurudrive,naoki0h,nc30,una9,kaorock72,rickaddison7634,mimitips,mthaichi,shimotomoki,sysbird Donate link: Tags: Gutenberg,FAQ,alert -Requires at least: 5.7 -Tested up to: 5.7.2 +Requires at least: 5.8 +Tested up to: 5.8 Stable tag: 1.5.0 Requires PHP: 5.6.0 License: GPLv2 or later diff --git a/vk-blocks.php b/vk-blocks.php index bf0f9fa56..9ca9fc42c 100644 --- a/vk-blocks.php +++ b/vk-blocks.php @@ -4,7 +4,7 @@ * Plugin URI: https://github.com/vektor-inc/vk-blocks * Description: This is a plugin that extends Gutenberg's blocks. * Version: 1.5.0 - * Requires at least: 5.7 + * Requires at least: 5.8 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp * Text Domain: vk-blocks From 83992b479cbe16a320df715f7f76d89c7e966579 Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Tue, 15 Jun 2021 07:26:46 +0900 Subject: [PATCH 3/5] fix: block_categories_all --- inc/vk-blocks/vk-blocks-functions.php | 8 ++++++-- vk-blocks.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php index eff240fca..cc0e8f958 100644 --- a/inc/vk-blocks/vk-blocks-functions.php +++ b/inc/vk-blocks/vk-blocks-functions.php @@ -254,8 +254,12 @@ function vkblocks_blocks_categories( $categories, $post ) { return $categories; } - - add_filter( 'block_categories_all', 'vkblocks_blocks_categories', 10, 2 ); + // ver5.8.0 block_categories_all + if ( function_exists( 'get_default_block_categories' ) && function_exists( 'get_block_editor_settings' ) ) { + add_filter( 'block_categories_all', 'vkblocks_blocks_categories', 10, 2 ); + } else { + add_filter( 'block_categories', 'vkblocks_blocks_categories', 10, 2 ); + } } if ( ! function_exists( 'vkblocks_set_wp_version' ) ) { diff --git a/vk-blocks.php b/vk-blocks.php index 9ca9fc42c..bf0f9fa56 100644 --- a/vk-blocks.php +++ b/vk-blocks.php @@ -4,7 +4,7 @@ * Plugin URI: https://github.com/vektor-inc/vk-blocks * Description: This is a plugin that extends Gutenberg's blocks. * Version: 1.5.0 - * Requires at least: 5.8 + * Requires at least: 5.7 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp * Text Domain: vk-blocks From 2e92436a0dbd6d19df62bfca736c47e66bdc5835 Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Tue, 15 Jun 2021 07:27:05 +0900 Subject: [PATCH 4/5] readme --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 80e3c25fe..93483cd2f 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: vektor-inc,kurudrive,naoki0h,nc30,una9,kaorock72,rickaddison7634,m Donate link: Tags: Gutenberg,FAQ,alert Requires at least: 5.8 -Tested up to: 5.8 +Tested up to: 5.7 Stable tag: 1.5.0 Requires PHP: 5.6.0 License: GPLv2 or later From bf3848053920f080e8b4116e235a9ede677076eb Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Tue, 15 Jun 2021 08:56:17 +0900 Subject: [PATCH 5/5] fix: Requires at least --- readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 93483cd2f..c427b2df7 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: vektor-inc,kurudrive,naoki0h,nc30,una9,kaorock72,rickaddison7634,mimitips,mthaichi,shimotomoki,sysbird Donate link: Tags: Gutenberg,FAQ,alert -Requires at least: 5.8 -Tested up to: 5.7 +Requires at least: 5.7 +Tested up to: 5.7.2 Stable tag: 1.5.0 Requires PHP: 5.6.0 License: GPLv2 or later