Skip to content

Pattern Overrides: Initial number of number set (or $ + 2 numbers) disappear from edited Paragraph & Heading Blocks #62347

@EVERGIB

Description

@EVERGIB

Description

While using Synced Pattern Overrides on a pattern to display prices on a Paragraph Block for a restaurant menu, I noticed that the "$" and next two numbers of the price would not display on the website front end after editing from the original. Additionally, if I used only numbers for the price and no "$", I noticed that the first number of the set of numbers does not display on the front end (looks normal in the editor). The same issue happens with the "Headings" block when part of a Pattern Override.

Step-by-step reproduction instructions

  1. Create Group Block
  2. Add Heading Block and Paragraph Block to this group
  3. Create Synced Pattern from this group and Enable Overrides for the Headings and Paragraph blocks
  4. Add an instance of the synced pattern to your page
  5. edit either the heading block or paragraph block with three or more numbers, or a $ followed by three or more numbers
  6. view the page on the front-end - note that the initial number or $+2 numbers has disappeared

Screenshots, screen recording, code snippet

Images show the Pattern Override after editing the price - and the result on the website front end.
Pattern-Override_Backend-Editing
Pattern-Override_FrontEnd-Result

Environment info

Environment

  • WordPress: 6.6-beta1
  • PHP: 8.1.23
  • Server: nginx/1.16.0
  • Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.23)
  • Browser: Chrome 125.0.0.0 (macOS)
  • Theme: Twenty Twenty-Four 1.1
  • MU-Plugins: None activated
  • Plugins:
    • WordPress Beta Tester 3.5.5

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Block bindings[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions