Skip to content

fix(content-gate): change 'paragraph' to 'block' in settings text#4398

Open
wil-gerken wants to merge 1 commit intotrunkfrom
fix/content-gate-terminology
Open

fix(content-gate): change 'paragraph' to 'block' in settings text#4398
wil-gerken wants to merge 1 commit intotrunkfrom
fix/content-gate-terminology

Conversation

@wil-gerken
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

Updated terminology in the content gate settings panel from "paragraph" to "block" to better align with WordPress block terminology.

Since the Content Gate can be applied to any block type, not just paragraphs, this change makes the UI text more accurate and less confusing for users.

Closes # (leave blank - no issue to close).

Closes # .

How to test the changes in this Pull Request:

  1. In wp-admin, go here: Audience > Configuration > Content Gating > Content Gate
  2. Click on Configure
  3. View the Settings in the sidebar to review the copy changes, which are a swap of "paragraph" for "block" on the label: "Default Block Count", and its help: "Number of blocks that readers can see above the content gate.", plus the help on the More tag checkbox: "Override the default block count on pages where a “More” block has been placed."

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@wil-gerken wil-gerken requested a review from a team as a code owner January 15, 2026 16:53
@wil-gerken wil-gerken added the [Status] Needs Review The issue or pull request needs to be reviewed label Jan 15, 2026
Copy link
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

I'm not sure we should make this change. It counts only paragraphs when calculating the visible content for gated articles:

$count = max( 1, (int) \get_post_meta( $gate_post_id, 'visible_paragraphs', true ) );
// Split into paragraphs.
$content = explode( '</p>', $content );
// Extract the first $x paragraphs only.
$content = array_slice( $content, 0, $count ?? 2 );

Changing the terminology can be misleading.

@github-actions github-actions bot added the [Status] Needs Changes or Feedback The issue or pull request needs action from the original creator label Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] Needs Changes or Feedback The issue or pull request needs action from the original creator [Status] Needs Review The issue or pull request needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants