Skip to content

Commit

Permalink
update block api
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Jul 24, 2023
1 parent 151aa92 commit e0151e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Toro_Unit
Donate link: https://www.paypal.me/torounit
Tags: posts, blocks
Requires at least: 6.1
Tested up to: 6.2
Tested up to: 6.3
Requires PHP: 7.4
Stable tag: 5.1.1
License: GPLv2 or later
Expand Down Expand Up @@ -104,6 +104,10 @@ endif;

## Changelog

# 5.2.0
* Use block.json api version 3.
* fix `attributes` parameter to `advanced_posts_blocks_posts_query` filter.

### 5.1.0
* Tested on WP 6.2 and PHP 8.2.
* add `attributes` parameter to `advanced_posts_blocks_posts_query` filter.
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/children/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"name": "advanced-posts-blocks/children",
"apiVersion": 2,
"apiVersion": 3,
"title": "Child Posts",
"description": "Display children of selected post.",
"icon": "networking",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/post/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"name": "advanced-posts-blocks/post",
"apiVersion": 2,
"apiVersion": 3,
"title": "Single Post",
"description": "Display single post.",
"icon": "text-page",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/posts/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"name": "advanced-posts-blocks/posts",
"apiVersion": 2,
"apiVersion": 3,
"title": "Multiple Posts",
"description": "Display multiple posts.",
"icon": "admin-page",
Expand Down

0 comments on commit e0151e2

Please sign in to comment.