diff --git a/inc/vk-block-patterns/package/class-vk-block-patterns.php b/inc/vk-block-patterns/package/class-vk-block-patterns.php index f993ab6..1c53d0d 100644 --- a/inc/vk-block-patterns/package/class-vk-block-patterns.php +++ b/inc/vk-block-patterns/package/class-vk-block-patterns.php @@ -20,7 +20,11 @@ class VK_Block_Patterns { * Constructor */ public function __construct() { - add_action( 'init', array( __CLASS__, 'automatic_insert_block_patterns' ), 9 ); + + // 9 以下にすると Custom Post Type UI で作成した投稿タイプに挿入されないため 10 にしている. + // I set it to 10 because if it's under 9, the post type created by Custom Post Type UI won't be inserted. + add_action( 'init', array( __CLASS__, 'automatic_insert_block_patterns' ), 10 ); + add_action( 'init', array( __CLASS__, 'register_block_patterns' ), 8 ); add_action( 'init', array( __CLASS__, 'register_post_type' ), 7 ); add_action( 'admin_init', array( __CLASS__, 'admin_init' ) ); diff --git a/readme.txt b/readme.txt index ea28d3f..95117ca 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: Tags: Guternberg, Block Pattern Requires at least: 6.0 Tested up to: 6.2 -Stable tag: 1.32.0.0 +Stable tag: 1.32.1.0 Requires PHP: 7.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -16,6 +16,9 @@ When you activate this plugin that create new custom post type for custom block == Changelog == += 1.32.1 = +[ Bug fix ] The auto insert supports the post type created by Custom Post Type UI. + = 1.32.0 = [ Update ] Adjust all patterns diff --git a/vk-block-patterns.php b/vk-block-patterns.php index 84898d0..c90c015 100644 --- a/vk-block-patterns.php +++ b/vk-block-patterns.php @@ -3,7 +3,7 @@ * Plugin Name: VK Block Patterns * Plugin URI: https://github.com/vektor-inc/vk-block-patterns * Description: You can make and register your original custom block patterns. - * Version: 1.32.0.0 + * Version: 1.32.1.0 * Requires at least: 6.0 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp