Skip to content

Fix acf bug - #15

Merged
kjroelke merged 5 commits into
mainfrom
fix-acf-bug
Aug 12, 2026
Merged

Fix acf bug#15
kjroelke merged 5 commits into
mainfrom
fix-acf-bug

Conversation

@kjroelke

Copy link
Copy Markdown
Member

No description provided.

@kjroelke kjroelke self-assigned this Aug 12, 2026
@kjroelke
kjroelke marked this pull request as ready for review August 12, 2026 20:04
@kjroelke
kjroelke requested review from blake-perkins-dev and a lite review from Copilot and removed request for Copilot August 12, 2026 20:04
Copilot AI lite review requested due to automatic review settings August 12, 2026 20:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps the plugin/block versions and addresses an ACF Related Events edge case where mapped events can return null, while also adding a local tool to audit npm packages’ lifecycle scripts and risky patterns.

Changes:

  • Filter out invalid (null) event entries before sorting/rendering related events (block render + REST route helper).
  • Add an npm package audit helper script and ignore its .tmp/ output directory.
  • Bump project and block versions, update dependency lockfiles, and refresh changelogs/metadata.

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tools/audit-npm-script-package.sh Adds a CLI helper to pack/extract an npm package and scan for risky patterns/lifecycle scripts.
src/blocks/acf-related-events/render.php Filters mapped related-event entries prior to sorting/rendering.
src/blocks/acf-related-events/CHANGELOG.md Introduces a block-level changelog documenting the null-filtering fix.
src/blocks/acf-related-events/block.json Adds block version 1.0.1.
package.json Bumps package version, fixes homepage URL typo, adds an npm script to run the audit tool, updates dev deps and allowScripts.
inc/routes/class-acf-rest-router.php Filters mapped events before sorting/returning from REST router helper.
composer.lock Updates PHPCS/WPCS-related dev tooling versions and lockfile hash.
composer.json Bumps Composer package version to 2.7.1.
cno-plugin-cno-blocks.php Bumps plugin header version and “Tested up to” value.
CHANGELOG.md Adds v2.7.1 entry pointing to the ACF Related Events block changelog.
.gitignore Ignores .tmp/ (used by the new audit tool output).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
Comment thread tools/audit-npm-script-package.sh
Comment thread src/blocks/acf-related-events/render.php
Comment thread inc/routes/class-acf-rest-router.php
Comment thread tools/audit-npm-script-package.sh
@kjroelke
kjroelke merged commit 57ae036 into main Aug 12, 2026
5 checks passed
@kjroelke
kjroelke deleted the fix-acf-bug branch August 12, 2026 20:33
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.

3 participants