Skip to content

Commit

Permalink
Bumps version to 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dsawardekar committed Nov 25, 2022
1 parent 65088c6 commit a2b7179
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file, per [the Ke

- todo

## [1.3.1] - 2022-11-25

- Minor docs updates

## [1.3.0] - 2022-11-25

- Adds support for hierarchical classification
Expand Down
1 change: 1 addition & 0 deletions bin/build-release-svn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rsync \
--exclude ".*" \
--exclude "package*.json" \
--exclude "phpcs*" \
--exclude "assets" \
. releases/svn/trunk

rsync \
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "block-catalog-plugin",
"description": "Easily keep track of which Gutenberg Blocks are used across your site.",
"version": "1.3.0",
"version": "1.3.1",
"author": {
"name": "Darshan Sawardekar",
"email": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Block Catalog
* Description: Easily keep track of which Gutenberg Blocks are used across your site.
* Version: 1.3.0
* Version: 1.3.1
* Requires at least: 5.7
* Requires PHP: 7.4
* Author: Darshan Sawardekar, 10up
Expand All @@ -17,7 +17,7 @@


// Useful global constants.
define( 'BLOCK_CATALOG_PLUGIN_VERSION', '1.3.0' );
define( 'BLOCK_CATALOG_PLUGIN_VERSION', '1.3.1' );
define( 'BLOCK_CATALOG_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'BLOCK_CATALOG_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'BLOCK_CATALOG_PLUGIN_INC', BLOCK_CATALOG_PLUGIN_PATH . 'includes/' );
Expand Down
21 changes: 5 additions & 16 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: gutenberg, developer, blocks, custom blocks
Requires at least: 5.7
Tested up to: 6.1
Requires PHP: 7.4
Stable tag: 1.3.0
Stable tag: 1.3.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -50,24 +50,13 @@ If your blocks are registered on the Backend with the old [register_block_type](

When the plugin detects such a missing `title`, it uses the `blockName` suffix instead. eg:- xyz/custom-block will display as Custom Block.

To address this you need to update your custom block registration. If this is outside your control, you can also use the `block_catalog_block_title` filter hook to override the title as seen below.
To address this you need to update your custom block registration. If this is outside your control, you can also use the `block_catalog_block_title` filter hook to [override the title as seen here](https://gist.github.com/dsawardekar/676d0d4c5d7f688351e199fdc54484d6).

<pre><?php

add_filter( 'block_catalog_block_title', function( $title, $block_name, $block ) {
$map = [
"xyz/custom-block" => "My Custom Block",
];

if ( ! empty( $map[ $block_name ] ) ) {
return $map[ $block_name ];
}
== Changelog ==

return $title;
}, 10, 3 );
</pre>
= 1.3.1 - 2022-11-25 =

== Changelog ==
- Minor docs updates

= 1.3.0 - 2022-11-25 =

Expand Down

0 comments on commit a2b7179

Please sign in to comment.