Automattic / Automattic/jetpack

Jetpack/Button block allows inserting blocks when changing alignment controls even when templateLock is active

Open
#23,204 0 comments 0 reactions 0 assignees View on GitHub
[Block] Payment Button [Focus] FSE [Plugin] Jetpack [Pri] Low Bug Earn Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

1. Create or edit a Post.
2. Add a block that has a jetpack/button block, for example, a Payment Button block.
3. Change the alignment of the block using the controls.
4. You are now able to add blocks even though template locking is active.

#### Video steps

https://user-images.githubusercontent.com/1989914/156443985-a9a32abb-aae5-4fb7-9c95-23e865c2e7cb.mp4

### A clear and concise description of what you expected to happen.

When I change the alignment I expect the template lock to continue to work.

### What actually happened

Template lock has no effect and I'm able to insert blocks.

### Operating System

macOS

### Browser

Chrome/Chromium

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a Payment Button block inside a post, then change its alignment while template locking is active. Trace the Jetpack/Button block's alignment controls and verify that changing alignment no longer permits block insertion when the template lock is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.