=== Reusable Block and Synced Pattern Count ===
Contributors: georgestephanis
Tags: blocks, synced patterns, patterns, gutenberg, reusable
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 5.6
Stable tag: 1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reusable-block-count

Display a Synced Patterns listing page and a link to view all posts containing a given pattern.

== Description ==

Adds a Synced Patterns entry to the admin Posts menu (formerly called "Reusable Blocks" before WordPress 6.3), and shows a "Posts" column on the listing page counting how many posts each pattern appears in. Click the count to jump straight to a filtered posts list.

Only counts posts that *contain* the pattern — not the number of times the pattern appears within a single post.

**Note:** WordPress renamed "Reusable blocks" to "Synced patterns" in version 6.3. This plugin adapts its menu label to match whatever your version of WordPress calls them.

== Changelog ==

= 1.1 =
* Updated menu label to follow WordPress core naming: "Synced Patterns" on WP 6.3+, "Reusable Blocks" on older installs.
* Added text domain (`reusable-block-count`) to all translatable strings.
* Fixed double URL-encoding of the post search query.
* Fixed PHPDoc formatting throughout.
* Bootstrap on `plugins_loaded` rather than at file scope.

= 1.0 =
* Initial Release.

== Props ==

This plugin was loosely based on https://wordpress.org/plugins/fabrica-reusable-block-instances/ — some code was simplified and optimized for performance.
