Skip to content

Patterns: Remove ids from the copied pattern code #698

Description

@ryelle

See WordPress/gutenberg#60323 — Patterns created outside of the pattern creator have "local" images, with id values matching that other site. When they're used in the pattern directory and then copied, the ID attribute tells the editor that it's not an external image, so you don't get the "upload image" button, even though it's not an image on the destination site.

Can the id attribute be filtered out on copy so that this doesn't happen?

Related: #494

Activity

  1. added
    [Component] ThemeThe frontend of the pattern directory, pattern lists UI
    [Component] Pattern DirectoryThe backend of the pattern directory: submission, management, etc
    on Jul 4, 2024
  2. moved this to 📋 To do in WordPress.orgon Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Component] Pattern DirectoryThe backend of the pattern directory: submission, management, etc[Component] ThemeThe frontend of the pattern directory, pattern lists UI

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions