Skip to content

Resolve remaining WordPress.org review findings - #126

Merged
danieliser merged 2 commits into
developfrom
fix/wporg-review-round-3
Sep 21, 2026
Merged

danieliser merged 2 commits into
developfrom
fix/wporg-review-round-3

Conversation

@danieliser

Copy link
Copy Markdown
Contributor

Summary

  • use the content-control text domain for requirement notices
  • remove obsolete legacy APIs deprecated since Content Control 2.0
  • remove the deprecated $cc_term compatibility global

Validation

  • composer lint
  • composer phpstan
  • production asset build
  • PHP syntax checks
  • exact public-code dependency search found no direct consumers of the removed APIs

The local PHPUnit harness currently fails on unrelated PHPUnit 12 compatibility issues, including ignored docblock data providers.

@coderabbitai

coderabbitai Bot commented Sep 21, 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: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 1eee0e47-a328-4873-a4f1-fdd2750fcfea

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-21T03:16:51.498192Z 89bb5a7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89bb5a7654

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread content-control.php
@@ -129,7 +129,6 @@ function plugin_instance() {

if ( ! $plugin instanceof \ContentControl\Plugin\Core ) {
require_once __DIR__ . '/inc/functions.php';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve legacy APIs until the next major release

On sites with extensions or custom snippets that still call jp_content_control(), JP\CC\Is, or the jp_cc_* hooks, omitting this loader causes fatal undefined-function/class errors or silently disables their restriction callbacks. These APIs were explicitly retained as compatibility shims, and the repository advertises SemVer while the plugin metadata remains at 2.7.3, so they should remain available until a major release.

Useful? React with 👍 / 👎.

Comment thread inc/functions/query.php
Comment on lines 290 to +291
// Overload the globals so conditionals work properly.
$cc_term = get_term( $term_id );
// Set the global term object (forward compatibility).
set_global( 'term', $cc_term );
set_global( 'term', get_term( $term_id ) );

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Continue synchronizing the deprecated term global

When a term restriction is evaluated, integrations that inspect the legacy $cc_term global now see it unset or stale because only the managed term value is updated. That compatibility global predates the managed service and was deprecated only in 2.7.1, so removing its synchronization in the still-2.7.x plugin can make existing term-related callbacks evaluate the wrong term; keep both values synchronized until a major release.

Useful? React with 👍 / 👎.

@danieliser
danieliser merged commit 231758c into develop Sep 21, 2026
3 checks passed
@danieliser
danieliser deleted the fix/wporg-review-round-3 branch September 21, 2026 03:16
@danieliser danieliser mentioned this pull request Sep 21, 2026
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