Skip to content

Related Posts Block: Available in Block Picker even if Disabled #11861

Closed

Description

@ockham

Steps to reproduce

  1. On a WP.com test site, start a new post in the block editor, and add a 'Related Posts' block.
  2. Publish and view the post to verify that the block is present on the frontend.
  3. At https://wordpress.com/settings/traffic/<yourSite>, disable the Related Posts toggle
  4. Reload the published posts, and verify that the Related Posts block is no longer visible
  5. Edit the post again in Calypso.

What I expected

The block to be disabled (showing an error that it's unavailable), and to be missing from the block picker

What happened instead

The block is still there (displaying example content), and is still shown in the block picker

Context

In Jetpack, this works as expected.

I'm guessing something is wrong with block registration.

/cc @tyxla

Primary issue

#32401

Activity

  1. self-assigned this
    on Dec 21, 2018
  2. tyxla commented on Dec 21, 2018

    @tyxla
    Member

    Jetpack sites seem to work alright, because the setting to enable Related Posts is tightly coupled with the Related Posts module toggle - when one of them gets enabled or disabled, that is applied to the other, too.

  3. added
    Bug
    [Focus] Blocks
    on Apr 3, 2019
  4. jeherve commented on Apr 4, 2019

    @jeherve
    Member

    To be honest this is how I would expect things to work. On WordPress.com simple sites, the feature is always active, and thus the block is always available. The toggle in the traffic settings allows you to remove the section from the bottom of your posts, but it does not disable the feature (unlike the toggle in Jetpack sites, which does disable the module entirely).

    If anything, I would like the block to be less coupled to the module in Jetpack as well. What do you think?

    Related: #11021

  5. MichaelArestad commented on Jun 28, 2019

    @MichaelArestad
    Contributor

    If anything, I would like the block to be less coupled to the module in Jetpack as well. What do you think?

    I agree. I think we should decouple the block from the module. The block should be always on regardless of whether the module is.

  6. jeherve commented on Aug 11, 2021

    @jeherve
    Member

    Related: #20628

  7. moved this from To triage to To do in Jetpack Blocks [Archived]on Aug 10, 2023
  8. moved this from To do to In Progress in Jetpack Blocks [Archived]on Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bug[Feature] Related Posts[Focus] Blocks[Pri] Normal

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions