[wp-trac] [WordPress Trac] #62675: register new pattern catogory possible docs bug
WordPress Trac
noreply at wordpress.org
Thu Jan 2 10:55:13 UTC 2025
#62675: register new pattern catogory possible docs bug
-------------------------------+------------------------------
Reporter: backit | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by poena):
* keywords: => reporter-feedback
Comment:
Hi @backit and welcome to the WordPress Trac!
Can you please reply with a more detailed description of what is not
working?
When I copy paste the code in the example, the pattern category does exist
and my pattern has the correct category name.
But if I go to Appearance > Editor > Patterns and select the specific
pattern, the slug is {{{themeslug%2Fcustom}}}
If I duplicate the pattern, the slug is {{{themeslug-custom}}}.
If I select "Add new pattern" and select the category from the list, the
slug is {{{themeslug-custom}}}
So I end up with patterns in two categories with the same name but with
different slugs.
Using a prefix as part of a unique identifier is valid. I don't think that
this is a documentation issue but a bug in the Site Editor.
If this is the case, then a new issue needs to be opened in the Gutenberg
GitHub repository, and this ticket should then be closed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62675#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list