Skip to content

Commit

Permalink
Merge pull request #210 from vektor-inc/1-32-1-0
Browse files Browse the repository at this point in the history
[ Change version ] 1.32.1.0 / CPT UI で 自動挿入が使えるように
  • Loading branch information
kurudrive authored Jun 10, 2024
2 parents f4ce28d + 2f334f1 commit 0988c02
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion inc/vk-block-patterns/package/class-vk-block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion vk-block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0988c02

Please sign in to comment.