Support

Account

Home Forums Bug Reports Possible bug in acf_register_block with numeric characters

Solved

Possible bug in acf_register_block with numeric characters

    • Joerg

    • May 3, 2019 at 6:18 pm

    Hi there,

    I’ve encountered a possible bug in acf_register_block: when registering a block with a name that has a numeric character as the first character the block isn’t available in the editor. The filter allowed_block_types is also used but the bug occurs even with the filter deactivated.

    Is this a namespace error of Gutenberg or of acf_register_block?

    Thanks,
    Joerg

  • I don’t use it, but my guess would be that the name is uses as a variable name or other name. Names for variables, functions, etc, in PHP and JS cannot begin with a number.

    • Joerg

    • May 3, 2019 at 10:42 pm

    @hube2 Thanks, I guess that is a pretty good guess! πŸ˜‰

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.