Automattic / Automattic/jetpack
Paid Content Block - Guest View displayed to logged-in users and Log In button not functional when More Block is nested.
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Jetpack
### Quick summary
When a More block is nested in a Paid Content Block, a user who is logged in and visiting a post with a Paid Content Block will see the guest content. The Log In button is not functional (there is not even a link target associated with the button), and the Subscribe button is missing.
Expected behavior is that the subscriber content should be shown when a logged-in user visits the page, and there should not be any non-functional links.
### Steps to reproduce
- I started a Free site with the same theme (Quadrat), and I chose a premium style.
- I connected a Stripe account, and I made a Newletter tier subscription
- I set the site privacy to Public.
- I created a post with a Paid Content block, and I connected the Newsletter Tier subscriptions (monthly and annual) to that block.
- I added test content, including a More Block to the Subscriber view
### A clear and concise description of what you expected to happen.
A logged in user should see the subscriber content, and all links should be functional.
### What actually happened
A logged in user sees the guest content. The Log In button is not functional (there is not even a link target associated with the button), and the Subscribe button is missing.
### Impact
All
### Available workarounds?
Yes, easy to implement
### Platform (Simple and/or Atomic)
Simple, Atomic
### Logs or notes
Workaround: Remove the More Block and instead use a Details Block.
Contributor guide
Research direction
Reproduce the issue in Jetpack with a Paid Content Block containing a nested More block, using a logged-in user and the Newsletter Tier subscription setup described. Trace why the subscriber view is not selected and why the Log In and Subscribe controls are missing or non-functional; done means logged-in users see subscriber content and all displayed links work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- content, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100