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

  • 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.

  • @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.