Skip to content

Release 2.2.0: block-based team templates, schema fixes, and security hardening - #131

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

Release 2.2.0: block-based team templates, schema fixes, and security hardening#131
krugazul merged 26 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 renames and rebuilds the team member block variations for consistency, and adds new "related" block variations for surfacing connected content on the team member edit screen.

Added

  • New block variations for surfacing content connected to a team member: special-related-team, review-related-team, and post-related-team.
  • Team - Social Links block variation, with custom field integration and editor styling.
  • Hero section (featured-image cover with post/archive title and tagline) added to templates/archive-team.html and templates/single-team.html.
  • Archive description content section added above the team query loop in templates/archive-team.html.

Fixed

  • Security: escaped tel:/mailto: contact links and social profile URLs; added ABSPATH early-exit guards to all class files, config includes, template tags, and the team-card pattern.
  • Bug: fixed user array overwrite in config-team.php; glob() no longer iterates on empty/missing directories; parse_url() replaced with wp_parse_url(); Envira Gallery posts_per_page cast to int; role taxonomy rewrite slug corrected.
  • i18n: load_plugin_textdomain() simplified to WordPress auto-discovery.

Updated

  • Requires Plugins: tour-operator added to plugin header; version bumped to 2.2.0.
  • readme.txt: tested up to WordPress 7.0; corrected theme name; fixed FAQ headings.
  • Breadcrumbs on both templates rebuilt as a full-width, primary-coloured band using yoast-seo/breadcrumbs.
  • Sticky menu restyled for accessibility; section padding unified to var:preset|spacing|50.

Schema Fixes / Added

  • Person schema output corrected (@type, @id, name, description, deduped memberOf/worksFor).
  • owns replaced with additionalProperty entries via new add_associated_property() helper; new add_same_as() for social profile sameAs.

Full changelog: changelog.md

🤖 Generated with Claude Code

dependabot Bot and others added 26 commits December 20, 2025 07:59
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 [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 [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](styfle/cancel-workflow-action@0.13.0...0.13.1)

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

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

Bump styfle/cancel-workflow-action from 0.13.0 to 0.13.1
Bumps [composer/installers](https://github.com/composer/installers) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/composer/installers/releases)
- [Changelog](https://github.com/composer/installers/blob/main/CHANGELOG.md)
- [Commits](composer/installers@v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: composer/installers
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps wpackagist-plugin/tour-operator from 1.4.9 to 2.1.1.

---
updated-dependencies:
- dependency-name: wpackagist-plugin/tour-operator
  dependency-version: 2.1.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [phpcompatibility/phpcompatibility-wp](https://github.com/PHPCompatibility/PHPCompatibilityWP) from 2.1.4 to 2.1.8.
- [Release notes](https://github.com/PHPCompatibility/PHPCompatibilityWP/releases)
- [Changelog](https://github.com/PHPCompatibility/PHPCompatibilityWP/blob/master/CHANGELOG.md)
- [Commits](PHPCompatibility/PHPCompatibilityWP@2.1.4...2.1.8)

---
updated-dependencies:
- dependency-name: phpcompatibility/phpcompatibility-wp
  dependency-version: 2.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [dealerdirect/phpcodesniffer-composer-installer](https://github.com/PHPCSStandards/composer-installer) from 1.0.0 to 1.2.1.
- [Release notes](https://github.com/PHPCSStandards/composer-installer/releases)
- [Changelog](https://github.com/PHPCSStandards/composer-installer/blob/main/CHANGELOG.md)
- [Commits](PHPCSStandards/composer-installer@v1.0.0...v1.2.1)

---
updated-dependencies:
- dependency-name: dealerdirect/phpcodesniffer-composer-installer
  dependency-version: 1.2.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [wp-coding-standards/wpcs](https://github.com/WordPress/WordPress-Coding-Standards) from 3.0.1 to 3.3.0.
- [Release notes](https://github.com/WordPress/WordPress-Coding-Standards/releases)
- [Changelog](https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/CHANGELOG.md)
- [Commits](WordPress/WordPress-Coding-Standards@3.0.1...3.3.0)

---
updated-dependencies:
- dependency-name: wp-coding-standards/wpcs
  dependency-version: 3.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…r/installers-2.3.0

Bump composer/installers from 2.2.0 to 2.3.0
…ist-plugin/tour-operator-2.1.1

Bump wpackagist-plugin/tour-operator from 1.4.9 to 2.1.1
…atibility/phpcompatibility-wp-2.1.8

Bump phpcompatibility/phpcompatibility-wp from 2.1.4 to 2.1.8
…irect/phpcodesniffer-composer-installer-1.2.1

Bump dealerdirect/phpcodesniffer-composer-installer from 1.0.0 to 1.2.1
…ng-standards/wpcs-3.3.0

Bump wp-coding-standards/wpcs from 3.0.1 to 3.3.0
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 8.5.36 to 8.5.52.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/8.5.52/ChangeLog-8.5.md)
- [Commits](sebastianbergmann/phpunit@8.5.36...8.5.52)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-version: 8.5.52
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
…/phpunit-8.5.52

Bump phpunit/phpunit from 8.5.36 to 8.5.52
Bumps [wp-coding-standards/wpcs](https://github.com/WordPress/WordPress-Coding-Standards) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/WordPress/WordPress-Coding-Standards/releases)
- [Changelog](https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/CHANGELOG.md)
- [Commits](WordPress/WordPress-Coding-Standards@3.3.0...3.4.0)

---
updated-dependencies:
- dependency-name: wp-coding-standards/wpcs
  dependency-version: 3.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ng-standards/wpcs-3.4.0

Bump wp-coding-standards/wpcs from 3.3.0 to 3.4.0
Bumps [wp-coding-standards/wpcs](https://github.com/WordPress/WordPress-Coding-Standards) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/WordPress/WordPress-Coding-Standards/releases)
- [Changelog](https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/CHANGELOG.md)
- [Commits](WordPress/WordPress-Coding-Standards@3.4.0...3.4.1)

---
updated-dependencies:
- dependency-name: wp-coding-standards/wpcs
  dependency-version: 3.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ng-standards/wpcs-3.4.1

Bump wp-coding-standards/wpcs from 3.4.0 to 3.4.1
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
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
… hardening (#130)

* - Adding in the block class
- Updating the build process
- Updating the post type registration

* - Adding in the featured block
- Adding in the related query blocks.

* - Adding in the post_connection blocks.

* - Adding in the post_meta blocks.

* Building the team plugin

* Updating the CSS Classes.

* Allowing the social links block.

* Updating the related blocks.

* Updating the blocks so they register correctly.

* Add team member blocks: contact email, contact number, gallery, role, social links, and tagline

* Add tour-related team block with registration logic and asset files

* Add accommodation, destination, and tour blocks with registration logic

* Rename team blocks and add related-team block variations (#122)

* Add Team - Social Links block variation with custom field integration and styling

* Update block variations and descriptions for team and tour related blocks

- Changed titles and descriptions for the following blocks:
  - `tour-related-team`: Updated title to "Related Tour" and description to "Display tour related to this team member."
  - `destination-related-team`: Updated title to "Team - Related Destination" and description to "Display destination related to this team member."
  - `accommodation-related-team`: Updated title to "Team - Related Accommodation" and description to "Display accommodation related to this team member."
  - `team-related-team`: Updated title to "Related Team" and description to "Displays team members related to this team member."

- Updated asset versions for the following blocks:
  - `destination-related-team`
  - `team-related-team`
  - `tour-related-team`

- Adjusted JavaScript logic in block variations to reflect new titles and descriptions.

* Update tour-related team block variation with new attributes and registration logic

* Update block variations for accommodation, destination, and tour related teams

- Modified the JavaScript files for accommodation-related-team, destination-related-team, and tour-related-team blocks to update inner block structures and metadata names.
- Changed the asset version numbers for destination-related-team and tour-related-team blocks to reflect recent changes.

* Remove team-related block and add new related blocks for posts, reviews, and specials

* Update changelog for 2.2 block renames and new related-team blocks

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* Add block variations for related posts, teams, and reviews

- Introduced `team-related-special` block to display teams related to a special.
- Added `post-related-review` block for showcasing posts related to a review.
- Created `post-related-special` block to show posts related to a special.
- Implemented `review-related-special` block for displaying reviews related to a special.
- Added `special-related-review` block to show specials related to a review.
- Introduced `team-related-review` block for displaying team members related to a review.

* fix(schema): align Team Person schema with approved Schema 2.0 mapping

@type is now a string, @id is unique per post, title/content use
filtered WordPress output, redundant memberOf is removed, owns is
replaced with additionalProperty (Associated Tours/Accommodation),
and sameAs is added for populated social profile fields.

Refs #124

* fix(schema): use shared lsx\schema\Helpers for description output

Aligns with the core Tour Operator Trip/Accommodation/Destination
schema pieces (issue #1143), which always load this helper class on
plugins_loaded, so behaviour (HTML entity decoding, etc.) stays in
sync across core and extensions.

Refs #124

* Add block based templates for team members (#125)

* Add block-based templates for team members, including contact details and related tours, reviews, and specials sections

* Refactor team member template to include block-based sections for accommodation, tours, destinations, and reviews

* Add block pattern registration and create team card pattern file

* Replace accommodation, tour, destination, and review card implementations with block patterns for improved template consistency

* Fix directory path for block patterns registration in LSX_TO_Team_Blocks class

* Add team card pattern for displaying team members with contact details and social links

* Remove social links section from team card pattern for cleaner design

* Add breadcrumbs and post excerpt to team templates for improved navigation and content display

* Update block variations and layouts for related reviews and specials

- Updated asset versions for review-related-special, special-related-review, team-related-review, and team-related-special blocks.
- Modified JavaScript files for review-related-special, special-related-review, team-related-review, and team-related-special blocks to change the grid column count from 2 to 3.
- Enhanced the layout structure for post-related-review and post-related-special blocks to accommodate the new column count.

* Add block-based templates for team members, including accommodation and destination sections

---------

Co-authored-by: krugazul <krugazul@gmail.com>

* fix: WordPress.org compliance fixes (2.2.0) (#128)

* Fix user array population and enhance contact links with escaping functions

* Refactor block registration to check for empty directories and update pagination parameters for Envira Gallery queries

* Improve code standards and update readme for LSX Theme compatibility

* Add ABSPATH check to multiple files and update tested version in readme

* docs: update changelog for 2.2.0 wporg fixes

Covers all changes introduced in fixes/wporg:
- ABSPATH guards added to all class files, config includes, template tags, pattern
- User array population fix (was overwriting on each iteration) + scoped to team screen
- esc_url/esc_html/esc_attr applied to contact links and social profiles
- glob() empty-directory guard in LSX_TO_Team_Blocks::register_blocks()
- wp_parse_url() replaces parse_url()
- posts_per_page integer fix for Envira Gallery queries
- Taxonomy rewrite slug fix for 'role'
- load_plugin_textdomain() simplified
- Requires Plugins header added
- Tested up to WordPress 7.0, stable tag 2.2.0

* docs: update changelog for 2.2 schema alignment

Covers all changes in feature/1143-schema-2.2-team-alignment:
- @type simplified to plain string 'Person'
- @id changed to #/schema/person/{id}
- name uses get_the_title(), description uses Helpers::strip_to_text()
- memberOf removed (duplicate of worksFor)
- owns replaced with additionalProperty PropertyValues via add_associated_property()
- New add_same_as() method for social profile fields
- add_products() renamed to add_associated_products()

* fix: ensure script execution only within WordPress environment

* feat: enhance team archive template with cover section and description

* fix: simplify team description in archive template

* feat: add hero section with cover and post title to single team template

* feat: update sticky menu styles for improved accessibility and visual consistency

* feat: update padding for sections in single team template for improved layout consistency

* feat: update breadcrumbs section in team templates for improved styling and consistency

* docs: update changelog and readme for template hero, breadcrumb, and spacing changes

Reflects the archive/single team template updates (hero sections, breadcrumb
rebuild, section spacing, ABSPATH guard) merged into update-2.2 after the
initial 2.2 changelog entry was written.

* Update translation file for Tour Operator Team plugin to version 2.2.0

- Updated copyright year to 2026.
- Revised project version in the header.
- Adjusted POT creation date.
- Updated WP-CLI generator version.
- Added new translation strings for associated accommodations and tours.
- Modified existing translation strings for clarity and consistency.
- Added new block titles and descriptions for various team-related blocks.
- Included additional team member details and related content queries.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Jose Abreu <josearmandoabreu.85@gmail.com>
@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: d623e5b1-0540-423c-92b0-8d1a1989ca87

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

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 db3676a 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.

1 participant