Skip to content

Release 2.2.0: block-based review templates, schema fixes, and security hardening - #236

Merged
krugazul merged 239 commits into
masterfrom
develop
Jul 30, 2026
Merged

Release 2.2.0: block-based review templates, schema fixes, and security hardening#236
krugazul merged 239 commits into
masterfrom
develop

Conversation

@krugazul

Copy link
Copy Markdown
Contributor

Summary

Promotes develop to master for the 2.2.0 release. Description below is the latest changelog.md entry.

[2.2] - 2026-07-29

This release introduces comprehensive block support for the Reviews post type, including new meta blocks, block variations for connecting reviews to core Tour Operator post types, a review card pattern, and updated block-based templates for archive and single review pages.

Added

  • New LSX_TO_Reviews_Blocks class for centralised block/pattern registration.
  • Meta blocks (date-of-visit, rating, reviewer-name, tagline, gallery, no-adults, no-children); connection blocks (accommodation-to-review, destination-to-review, team-to-review, tour-to-review); related-review query blocks; featured-review block; review card pattern.
  • Breadcrumbs (yoast-seo/breadcrumbs) and a hero/cover section on templates/single-review.html.

Updated

  • single-review.html rebuilt with new meta/connection blocks; sticky menu restyled; section padding unified; breadcrumbs refined; standalone "Reviewer:" block removed.
  • archive-review.html updated to use the review card pattern; card post title is now a link.
  • Plugin version bumped to 2.2.0; README.txt "Tested up to" bumped to WordPress 7.0.

Fixed

  • Review schema output corrected: merged duplicate itemReviewed keys, cast ratingValue to int, fixed bestRating/worstRating, corrected @id, removed reviewer email from schema, mapped reviewSectionabout, ISO 8601 date-of-visit intervals, correct destination/tour/accommodation @types, added root url.

Security

  • Added ABSPATH guards across classes, config includes, template tags, and the review-card pattern.
  • Removed an unnecessary load_plugin_textdomain action; renamed a metabox variable for clarity.
  • Addressed Plugin Check and WPCS issues flagged for the plugin (LS-1952).

Full changelog: changelog.md

🤖 Generated with Claude Code

dependabot Bot and others added 30 commits December 20, 2025 09:16
Bumps [actions/stale](https://github.com/actions/stale) from 9 to 10.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@v9...v10)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '10'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ctions/stale-10

Bump actions/stale from 9 to 10
Bumps [@wordpress/stylelint-config](https://github.com/WordPress/gutenberg/tree/HEAD/packages/stylelint-config) from 23.23.0 to 23.28.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/stylelint-config/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/stylelint-config@23.28.0/packages/stylelint-config)

---
updated-dependencies:
- dependency-name: "@wordpress/stylelint-config"
  dependency-version: 23.28.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.55.1 to 1.57.0.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.55.1...v1.57.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-version: 1.57.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [minimatch](https://github.com/isaacs/minimatch) from 10.0.3 to 10.1.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v10.0.3...v10.1.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/stylelint-config-23.28.0

Bump @wordpress/stylelint-config from 23.23.0 to 23.28.0
…ywright/test-1.57.0

Bump @playwright/test from 1.55.1 to 1.57.0
…imatch-10.1.1

Bump minimatch from 10.0.3 to 10.1.1
Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 22.17.0 to 22.22.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/eslint-plugin@22.22.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@wordpress/eslint-plugin"
  dependency-version: 22.22.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/eslint-plugin-22.22.0

Bump @wordpress/eslint-plugin from 22.17.0 to 22.22.0
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 30.24.0 to 31.1.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@31.1.0/packages/scripts)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-version: 31.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/scripts-31.1.0

Bump @wordpress/scripts from 30.24.0 to 31.1.0
Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 22.22.0 to 23.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/@wordpress/eslint-plugin@23.0.0/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/eslint-plugin@23.0.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@wordpress/eslint-plugin"
  dependency-version: 23.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@wordpress/stylelint-config](https://github.com/WordPress/gutenberg/tree/HEAD/packages/stylelint-config) from 23.28.0 to 23.29.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/@wordpress/stylelint-config@23.29.0/packages/stylelint-config/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/stylelint-config@23.29.0/packages/stylelint-config)

---
updated-dependencies:
- dependency-name: "@wordpress/stylelint-config"
  dependency-version: 23.29.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/eslint-plugin-23.0.0

Bump @wordpress/eslint-plugin from 22.22.0 to 23.0.0
…dpress/stylelint-config-23.29.0

Bump @wordpress/stylelint-config from 23.28.0 to 23.29.0
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 31.1.0 to 31.2.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/@wordpress/scripts@31.2.0/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@31.2.0/packages/scripts)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-version: 31.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/scripts-31.2.0

Bump @wordpress/scripts from 31.1.0 to 31.2.0
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.13.0 to 6.14.1
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.13.0...v6.14.1)

Updates `express` from 4.21.2 to 4.22.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v4.22.1/History.md)
- [Commits](expressjs/express@4.21.2...v4.22.1)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.1
  dependency-type: indirect
- dependency-name: express
  dependency-version: 4.22.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.12.1 to 0.13.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](styfle/cancel-workflow-action@0.12.1...0.13.0)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…tyfle/cancel-workflow-action-0.13.0

Bump styfle/cancel-workflow-action from 0.12.1 to 0.13.0
Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 23.0.0 to 24.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/eslint-plugin@24.0.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@wordpress/eslint-plugin"
  dependency-version: 24.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@wordpress/stylelint-config](https://github.com/WordPress/gutenberg/tree/HEAD/packages/stylelint-config) from 23.29.0 to 23.30.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/stylelint-config/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/stylelint-config@23.30.0/packages/stylelint-config)

---
updated-dependencies:
- dependency-name: "@wordpress/stylelint-config"
  dependency-version: 23.30.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/eslint-plugin-24.0.0

Bump @wordpress/eslint-plugin from 23.0.0 to 24.0.0
…dpress/stylelint-config-23.30.0

Bump @wordpress/stylelint-config from 23.29.0 to 23.30.0
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…ash-4.17.23

Bump lodash from 4.17.21 to 4.17.23
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 31.2.0 to 31.3.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@31.3.0/packages/scripts)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-version: 31.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.22 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits/4.17.23)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
mergify Bot and others added 27 commits July 27, 2026 01:50
…tcss-8.5.23

Bump postcss from 8.5.12 to 8.5.23
Bumps [minimatch](https://github.com/isaacs/minimatch) from 10.2.5 to 10.2.6.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v10.2.5...v10.2.6)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…imatch-10.2.6

Bump minimatch from 10.2.5 to 10.2.6
…cated-update

ci(mergify): upgrade configuration to current format
* Add review card pattern, Add Block-Based Templates and enhance single review template with related sections

* Update grid column count for accommodation, destination, and tour related review blocks to 3

* Add multi-field wrappers for review blocks to group date of visit fields

* Add travel dates filter to format review date fields

* Update Date of Visit block layout and labels for improved clarity

* Refactor single-review template to include block-based structure for related accommodations and destinations

---------

Signed-off-by: Jose Abreu <josearmandoabreu.85@gmail.com>
Co-authored-by: krugazul <krugazul@gmail.com>
Bumps [actions/stale](https://github.com/actions/stale) from 10 to 11.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@v10...v11)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '11'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ctions/stale-11

Bump actions/stale from 10 to 11
Documents all changes introduced on update-2.2 branch:
- New LSX_TO_Reviews_Blocks class
- 15 new meta and connection blocks
- Block variations for accommodation, destination, team, and tour
- Review card block pattern
- Updated block-based templates for single and archive views
- travel_dates() frontend filter for date formatting
Covers all changes introduced in feature/1143-schema-2.2-reviews-alignment:
- Conditional reviewRating block with integer cast and fixed bestRating/worstRating
- Fixed duplicate itemReviewed keys via new add_items_reviewed() method
- TouristTrip / LodgingBusiness / TouristDestination item types
- ISO 8601 temporalCoverage interval via add_date_of_visit()
- Hardened @id, removed author email, mapped category to 'about'
- Shared Helpers::strip_to_text() and format_iso_date() helpers
…#231)

* fix: add ABSPATH check to prevent direct access in multiple files

* fix: rename metabox variable for consistency and clarity in config-review.php

* fix: ignore PHPCS warning for non-prefixed hook name in class-to-review-schema.php
fix: remove unnecessary load_plugin_textdomain action in class-to-reviews-admin.php

* fix: update tested version to 7.0 in README.txt

* fix: update post-title block to make title linkable in review-card.php

---------

Co-authored-by: krugazul <krugazul@gmail.com>
Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 25.7.0 to 25.8.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/components@25.8.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@wordpress/eslint-plugin"
  dependency-version: 25.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@wordpress/stylelint-config](https://github.com/WordPress/gutenberg/tree/HEAD/packages/stylelint-config) from 24.0.0 to 24.1.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/stylelint-config/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@24.1.0/packages/stylelint-config)

---
updated-dependencies:
- dependency-name: "@wordpress/stylelint-config"
  dependency-version: 24.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/eslint-plugin-25.8.0

Bump @wordpress/eslint-plugin from 25.7.0 to 25.8.0
…dpress/stylelint-config-24.1.0

Bump @wordpress/stylelint-config from 24.0.0 to 24.1.0
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 33.0.0 to 34.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/components@34.0.0/packages/scripts)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-version: 34.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…dpress/scripts-34.0.0

Bump @wordpress/scripts from 33.0.0 to 34.0.0
…ening changes

Reflects the breadcrumbs/hero, sticky-menu, and spacing updates to
templates/single-review.html plus the Plugin Check/WPCS/ABSPATH fixes
(LS-1952) merged into update-2.2 after the initial 2.2 changelog entry
was written.
- Updated copyright year to 2026.
- Revised project version from 2.0.0 to 2.2.
- Adjusted POT creation date to July 30, 2026.
- Updated WP-CLI generator version to 2.12.0.
- Added new translation strings for various review-related blocks and metadata.
- Improved descriptions for blocks related to accommodations, destinations, and tours.
- Enhanced the overall structure and organization of translation entries.
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 42bbcfd6-c4b5-40f8-b278-73522e3f2fb4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
duplicated mapping key in ".coderabbit.yaml" (22:3)

 19 |       - '.*'
 20 |   path_filters:
 21 |     - "!build/**"
 22 |   path_filters:
--------^
 23 |     - "!build/**"
 24 |     - "!node_modules/**"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mergify

mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@krugazul
krugazul merged commit a0d0a66 into master Jul 30, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants