Skip to content

[2.9.2] Convert to Blocks not properly converting successive Shortcodes #7030

Closed

Description

@GlennMartin1

Describe the bug
On a Classic block with multiple successive Shortcodes, choose the option "Convert to Blocks." Not all the Shortcodes will convert.

To Reproduce
Steps to reproduce the behavior:

  1. create a new page/post
  2. add this content in a Classic block
    [shortcodetest]
    [shortcodetest]
    [shortcodetest]
  3. choose "Convert to Blocks"
  4. BUG: It will not create all the Shortcode blocks

Different combinations of text with successive Shortcodes result in different behavior, but in most/all scenarios, at least one of multiple successive Shortcodes does not convert.

Expected behavior
Any combination of Shortcodes, even in succession, should convert to Shortcode blocks.

Activity

  1. added this to the WordPress 5.0 milestone on Jun 6, 2018
  2. danielbachhuber commented on Jun 6, 2018

    @danielbachhuber
    Member

    I've confirmed this bug:

    convertmulti

    In my testing, it's the last shortcode that isn't converted to a block.

  3. removed their assignment
    on Jun 6, 2018
  4. danielbachhuber commented on Jun 18, 2018

    @danielbachhuber
    Member

    I suspect this is going to be a more common issue than not, so elevating priority.

    Related #3900 #4456

  5. danielbachhuber commented on Jul 9, 2018

    @danielbachhuber
    Member

    Interestingly, opening a post in the Classic Editor immediately wraps shortcodes with paragraph tags:

    image

    image

    Related #3900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions